Official reference client implementation for Cumulocity SmartREST on u-blox C027.
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
util/SmartRestConf.h@101:dbcd3bc51758, 2015-05-08 (annotated)
- Committer:
- xinlei
- Date:
- Fri May 08 12:19:57 2015 +0000
- Revision:
- 101:dbcd3bc51758
- Parent:
- 99:e369fc75c000
- Child:
- 106:c61f0d62b625
v2.1rc3
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
xinlei | 93:0acd11870c6a | 1 | #ifndef SMARTRESTCONF_H |
xinlei | 93:0acd11870c6a | 2 | #define SMARTRESTCONF_H |
xinlei | 94:61d44636f020 | 3 | #define SMARTREST_SIZE 600 |
xinlei | 94:61d44636f020 | 4 | #define SMARRESTBODY_SIZE 300 |
xinlei | 93:0acd11870c6a | 5 | |
xinlei | 99:e369fc75c000 | 6 | extern const char *srUsername; |
xinlei | 99:e369fc75c000 | 7 | extern const char *srPassword; |
xinlei | 99:e369fc75c000 | 8 | extern char srAuthStr[]; |
xinlei | 99:e369fc75c000 | 9 | extern const char *srX_ID; |
xinlei | 99:e369fc75c000 | 10 | extern const char *srHost; |
xinlei | 99:e369fc75c000 | 11 | extern const int srPort; |
xinlei | 99:e369fc75c000 | 12 | extern long deviceID; |
xinlei | 99:e369fc75c000 | 13 | extern char fmtSmartRest[]; |
xinlei | 93:0acd11870c6a | 14 | |
xinlei | 99:e369fc75c000 | 15 | void setDeviceID(long id); |
xinlei | 93:0acd11870c6a | 16 | void setAuth(const char* username, const char* password); |
xinlei | 101:dbcd3bc51758 | 17 | void setX_ID(const char* id); |
xinlei | 93:0acd11870c6a | 18 | |
xinlei | 93:0acd11870c6a | 19 | #endif /* SMARTRESTCONF_H */ |