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 Vincent Wochnik

Committer:
xinlei
Date:
Mon May 11 18:10:44 2015 +0000
Revision:
106:c61f0d62b625
Parent:
101:dbcd3bc51758
Child:
113:3872569be2af
SmartRestSSLSocket and various bug-fixes for rc3

Who changed what in which revision?

UserRevisionLine numberNew 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 106:c61f0d62b625 4 #define SMARTREST_BODY_SIZE 350
xinlei 106:c61f0d62b625 5 #define SMARTREST_SSL_SIZE 6000
xinlei 106:c61f0d62b625 6 #define SMARTREST_SSL_BODY_SIZE 5000
xinlei 93:0acd11870c6a 7
xinlei 99:e369fc75c000 8 extern const char *srUsername;
xinlei 99:e369fc75c000 9 extern const char *srPassword;
xinlei 99:e369fc75c000 10 extern char srAuthStr[];
xinlei 99:e369fc75c000 11 extern const char *srX_ID;
xinlei 99:e369fc75c000 12 extern const char *srHost;
xinlei 99:e369fc75c000 13 extern long deviceID;
xinlei 99:e369fc75c000 14 extern char fmtSmartRest[];
xinlei 106:c61f0d62b625 15 const int srPort = 80;
xinlei 106:c61f0d62b625 16 const int srSSLPort = 443;
xinlei 93:0acd11870c6a 17
xinlei 99:e369fc75c000 18 void setDeviceID(long id);
xinlei 93:0acd11870c6a 19 void setAuth(const char* username, const char* password);
xinlei 101:dbcd3bc51758 20 void setX_ID(const char* id);
xinlei 93:0acd11870c6a 21
xinlei 93:0acd11870c6a 22 #endif /* SMARTRESTCONF_H */