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

Committer:
AxedaCorp
Date:
Wed Jul 02 15:59:38 2014 +0000
Revision:
1:5ad12c581db4
Parent:
0:65004368569c
url ip switch
;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
AxedaCorp 0:65004368569c 1
AxedaCorp 0:65004368569c 2
AxedaCorp 0:65004368569c 3 #ifndef _AXCONSTANTS_H_
AxedaCorp 0:65004368569c 4 #define _AXCONSTANTS_H_
AxedaCorp 0:65004368569c 5
AxedaCorp 0:65004368569c 6 #define PROTOCOL_VERSION "1"
AxedaCorp 0:65004368569c 7
AxedaCorp 0:65004368569c 8 #define AX_ANALOG 1 //Used for Data Items
AxedaCorp 0:65004368569c 9 #define AX_STRING 2 //Used for Data Items
AxedaCorp 0:65004368569c 10 #define AX_DIGITAL 3 //Used for Data Items
AxedaCorp 0:65004368569c 11
AxedaCorp 0:65004368569c 12 #define AX_TRUE 1
AxedaCorp 0:65004368569c 13 #define AX_FALSE 0
AxedaCorp 0:65004368569c 14
AxedaCorp 0:65004368569c 15 #define AX_SCALAR 0
AxedaCorp 0:65004368569c 16 #define AX_ALARM 10
AxedaCorp 0:65004368569c 17 #define AX_EVENT 2
AxedaCorp 0:65004368569c 18 #define AX_FILE 3
AxedaCorp 0:65004368569c 19 #define AX_LOCATION 4
AxedaCorp 0:65004368569c 20
AxedaCorp 0:65004368569c 21 //used for getContentType() call, should return 'application/json'
AxedaCorp 0:65004368569c 22 #define MIME_JSON 0
AxedaCorp 0:65004368569c 23 #define TRANS_TYPE_JSON 0
AxedaCorp 0:65004368569c 24
AxedaCorp 0:65004368569c 25
AxedaCorp 0:65004368569c 26 #define AX_NO_PRIORITY -1
AxedaCorp 0:65004368569c 27 #define AX_LOWEST_PRIORITY 1
AxedaCorp 0:65004368569c 28 #define AX_HIGHEST_PRIORITY 100
AxedaCorp 0:65004368569c 29 #define AX_REGULAR_PRIORITY 50
AxedaCorp 0:65004368569c 30
AxedaCorp 0:65004368569c 31 #define KEY_CDHEADER 0
AxedaCorp 0:65004368569c 32 #define KEY_NAME 1
AxedaCorp 0:65004368569c 33 #define KEY_HINT 2
AxedaCorp 0:65004368569c 34 #define KEY_FNAME 3
AxedaCorp 0:65004368569c 35 #define KEY_CTYPE 4
AxedaCorp 0:65004368569c 36 #define KEY_OCTETSTR 5
AxedaCorp 0:65004368569c 37
AxedaCorp 0:65004368569c 38 //The following defines are for package instruction types
AxedaCorp 0:65004368569c 39 #define AX_PKG_DOWNLOAD 1
AxedaCorp 0:65004368569c 40
AxedaCorp 0:65004368569c 41 //The following defines are for setting package statuses on the platform
AxedaCorp 0:65004368569c 42 #define AX_PKG_QUEUED 0
AxedaCorp 0:65004368569c 43 #define AX_PKG_STARTED 1
AxedaCorp 0:65004368569c 44 #define AX_PKG_SUCCESS 2
AxedaCorp 0:65004368569c 45 #define AX_PKG_FAILURE 3
AxedaCorp 0:65004368569c 46
AxedaCorp 0:65004368569c 47 //The following defins are used for printing debug or error messages
AxedaCorp 0:65004368569c 48 #define AX_DEBUG_MSG 1
AxedaCorp 0:65004368569c 49 #define AX_ERROR_MSG 2
AxedaCorp 0:65004368569c 50
AxedaCorp 0:65004368569c 51 #endif
AxedaCorp 0:65004368569c 52