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
Diff: AMMPC/axConstants.h
- Revision:
- 0:65004368569c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/AMMPC/axConstants.h Tue Jul 01 21:31:54 2014 +0000 @@ -0,0 +1,52 @@ + + +#ifndef _AXCONSTANTS_H_ +#define _AXCONSTANTS_H_ + +#define PROTOCOL_VERSION "1" + +#define AX_ANALOG 1 //Used for Data Items +#define AX_STRING 2 //Used for Data Items +#define AX_DIGITAL 3 //Used for Data Items + +#define AX_TRUE 1 +#define AX_FALSE 0 + +#define AX_SCALAR 0 +#define AX_ALARM 10 +#define AX_EVENT 2 +#define AX_FILE 3 +#define AX_LOCATION 4 + +//used for getContentType() call, should return 'application/json' +#define MIME_JSON 0 +#define TRANS_TYPE_JSON 0 + + +#define AX_NO_PRIORITY -1 +#define AX_LOWEST_PRIORITY 1 +#define AX_HIGHEST_PRIORITY 100 +#define AX_REGULAR_PRIORITY 50 + +#define KEY_CDHEADER 0 +#define KEY_NAME 1 +#define KEY_HINT 2 +#define KEY_FNAME 3 +#define KEY_CTYPE 4 +#define KEY_OCTETSTR 5 + +//The following defines are for package instruction types +#define AX_PKG_DOWNLOAD 1 + +//The following defines are for setting package statuses on the platform +#define AX_PKG_QUEUED 0 +#define AX_PKG_STARTED 1 +#define AX_PKG_SUCCESS 2 +#define AX_PKG_FAILURE 3 + +//The following defins are used for printing debug or error messages +#define AX_DEBUG_MSG 1 +#define AX_ERROR_MSG 2 + +#endif +