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@113:3872569be2af, 2015-05-15 (annotated)
- Committer:
- xinlei
- Date:
- Fri May 15 14:07:51 2015 +0000
- Revision:
- 113:3872569be2af
- Parent:
- 106:c61f0d62b625
- Child:
- 117:5de54f09f754
data smoothing for pots readings
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 | 113:3872569be2af | 3 | |
xinlei | 94:61d44636f020 | 4 | #define SMARTREST_SIZE 600 |
xinlei | 106:c61f0d62b625 | 5 | #define SMARTREST_BODY_SIZE 350 |
xinlei | 106:c61f0d62b625 | 6 | #define SMARTREST_SSL_SIZE 6000 |
xinlei | 106:c61f0d62b625 | 7 | #define SMARTREST_SSL_BODY_SIZE 5000 |
xinlei | 93:0acd11870c6a | 8 | |
xinlei | 113:3872569be2af | 9 | #define CREDENTIAL_LENGTH 128 |
xinlei | 113:3872569be2af | 10 | |
xinlei | 113:3872569be2af | 11 | extern char srTenant[]; |
xinlei | 113:3872569be2af | 12 | extern char srUsername[]; |
xinlei | 113:3872569be2af | 13 | extern char srPassword[]; |
xinlei | 99:e369fc75c000 | 14 | extern char srAuthStr[]; |
xinlei | 113:3872569be2af | 15 | extern char fmtSmartRest[]; |
xinlei | 99:e369fc75c000 | 16 | extern const char *srX_ID; |
xinlei | 99:e369fc75c000 | 17 | extern const char *srHost; |
xinlei | 99:e369fc75c000 | 18 | extern long deviceID; |
xinlei | 106:c61f0d62b625 | 19 | const int srPort = 80; |
xinlei | 106:c61f0d62b625 | 20 | const int srSSLPort = 443; |
xinlei | 93:0acd11870c6a | 21 | |
xinlei | 99:e369fc75c000 | 22 | void setDeviceID(long id); |
xinlei | 113:3872569be2af | 23 | void setAuth(const char *tenant, const char *username, const char *password); |
xinlei | 113:3872569be2af | 24 | void setX_ID(const char *id); |
xinlei | 93:0acd11870c6a | 25 | |
xinlei | 93:0acd11870c6a | 26 | #endif /* SMARTRESTCONF_H */ |