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 revert by Axeda Corp

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers axConstants.h Source File

axConstants.h

00001 
00002 
00003 #ifndef _AXCONSTANTS_H_
00004 #define _AXCONSTANTS_H_
00005 
00006 #define PROTOCOL_VERSION "1"
00007 
00008 #define AX_ANALOG 1       //Used for Data Items
00009 #define AX_STRING 2       //Used for Data Items
00010 #define AX_DIGITAL 3      //Used for Data Items
00011 
00012 #define AX_TRUE 1
00013 #define AX_FALSE 0
00014 
00015 #define AX_SCALAR 0
00016 #define AX_ALARM 10
00017 #define AX_EVENT 2
00018 #define AX_FILE 3
00019 #define AX_LOCATION 4
00020 
00021 //used for getContentType() call, should return 'application/json'
00022 #define MIME_JSON       0
00023 #define TRANS_TYPE_JSON      0        
00024 
00025 
00026 #define AX_NO_PRIORITY           -1
00027 #define AX_LOWEST_PRIORITY       1
00028 #define AX_HIGHEST_PRIORITY    100
00029 #define AX_REGULAR_PRIORITY     50
00030 
00031 #define KEY_CDHEADER      0
00032 #define KEY_NAME          1
00033 #define KEY_HINT          2
00034 #define KEY_FNAME         3
00035 #define KEY_CTYPE         4
00036 #define KEY_OCTETSTR      5
00037 
00038 //The following defines are for package instruction types
00039 #define AX_PKG_DOWNLOAD 1
00040 
00041 //The following defines are for setting package statuses on the platform
00042 #define AX_PKG_QUEUED   0
00043 #define AX_PKG_STARTED  1
00044 #define AX_PKG_SUCCESS  2
00045 #define AX_PKG_FAILURE  3
00046 
00047 //The following defins are used for printing debug or error messages
00048 #define AX_DEBUG_MSG    1
00049 #define AX_ERROR_MSG    2
00050 
00051 #endif
00052