Axeda demo software for u-blox C027 (GSM)

Dependencies:   mbed

Committer:
AxedaCorp
Date:
Mon Aug 11 19:02:42 2014 +0000
Revision:
0:a725e8eab383
1st commit

Who changed what in which revision?

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