Axeda Ready Demo for Freescale FRDM-KL46Z as accident alert system

Dependencies:   FRDM_MMA8451Q KL46Z-USBHost MAG3110 SocketModem TSI mbed FATFileSystem

Fork of AxedaGo-Freescal_FRDM-KL46Z by Axeda Corp

Committer:
AxedaCorp
Date:
Wed Jul 02 19:57:37 2014 +0000
Revision:
2:2f9019c5a9fc
Parent:
0:65004368569c
ip switch

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AxedaCorp 0:65004368569c 1
AxedaCorp 0:65004368569c 2 #ifndef _AXSTATUSCODES_H_
AxedaCorp 0:65004368569c 3 #define _AXSTATUSCODES_H_
AxedaCorp 0:65004368569c 4
AxedaCorp 0:65004368569c 5 #define AX_ERROR -1 //A General Error has occurred
AxedaCorp 0:65004368569c 6 #define AX_OK 0 //Operation Success
AxedaCorp 0:65004368569c 7 #define AX_UNKNOWN -42 //An unknown error has occurred. Functions are normally initialized to return this value. The function should change it before returning it.
AxedaCorp 0:65004368569c 8 #define AX_ARGNULL -999 //An argument passed to the function was left null
AxedaCorp 0:65004368569c 9 #define AX_OUT_OF_RANGE -998 //An argument passed to the function was out of range
AxedaCorp 0:65004368569c 10 #define AX_DI_UNKNOWN_TYPE -997 //An argument passed to the function indicating the Data Item type was incorrect
AxedaCorp 0:65004368569c 11 #define AX_CONFLICTING_ARG -996 //Two arguments passed to a function describing the same object have conflicting values e.g. arg1(string)=="fubar"; arg2(strlength)==0, The string fubar is obviously longer than 0
AxedaCorp 0:65004368569c 12 #define AX_ARG_EMPTY -995 //An argument passed to the function was a string but it was empty eg mystring="". This will be thrown when a value is required.
AxedaCorp 0:65004368569c 13
AxedaCorp 0:65004368569c 14 #define AX_NET_ERR_UNABLE_TO_CONNECT 700 //Call to open the TCP port to IP or hostname has failed. Is the port open? IP contactable?
AxedaCorp 0:65004368569c 15 #define AX_NET_ERR_PORT_WRITE 701 //The program was unable to write data onto the socket.
AxedaCorp 0:65004368569c 16 #define AX_NET_ERR_HEADER_WRITE 702 //a write error occurred while writing the HTTP headers
AxedaCorp 0:65004368569c 17 #define AX_NET_ERR_DATA_WRITE 703 //a write error occurred while writing the HTTP data/body
AxedaCorp 0:65004368569c 18 #define AX_NET_ERR_TIMEOUT 704 //A timeout occurred while waiting for a response.
AxedaCorp 0:65004368569c 19 #define AX_NET_PORT_INVALID 705 //The port that was specified is larger than 65536 or less than 0
AxedaCorp 0:65004368569c 20 #define AX_NET_DNS_ERROR 706 //There was an error resolving the name of the platform server
AxedaCorp 0:65004368569c 21 #define AX_NET_MORE_WAITING 707 //Thrown when the data written to the port does not equal the amount of data that was requested to be written.
AxedaCorp 0:65004368569c 22
AxedaCorp 0:65004368569c 23 #define AX_GEN_STR_TRUNC 604 //the string to be stored was too long and has been truncated, This is a warning only.
AxedaCorp 0:65004368569c 24 #define AX_EGR_JSON_PARSE_FAIL 800 //The egress message that was returned did not have the necessary fields
AxedaCorp 0:65004368569c 25 #define AX_GEN_PARSE_ERR 603 //A general parsing failure has occured. Invalid JSON will cause this error.
AxedaCorp 0:65004368569c 26
AxedaCorp 0:65004368569c 27
AxedaCorp 0:65004368569c 28 //The following codes are used for an optional Queueing implementation example.
AxedaCorp 0:65004368569c 29 #define AX_GEN_QUEUE_FULL 600 //The queue is full and cannot accept more items. Item was not added. Enable overwrite or empty the queue
AxedaCorp 0:65004368569c 30 #define AX_GEN_QUEUE_ITEM_EXISTS 601 //The item you tried to enqueue already exists in the queue.
AxedaCorp 0:65004368569c 31 #define AX_GEN_QUEUE_EMPTY 602 //The queue is empty, thrown on a dequeue operation
AxedaCorp 0:65004368569c 32
AxedaCorp 0:65004368569c 33
AxedaCorp 0:65004368569c 34
AxedaCorp 0:65004368569c 35
AxedaCorp 0:65004368569c 36 #endif
AxedaCorp 0:65004368569c 37