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 Aug 08 11:05:57 2016 +0000
Revision:
139:f8ab852e83e7
Parent:
117:5de54f09f754
Etisalat and Teleena APN.

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 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 117:5de54f09f754 10 #define UBLOX_SMARTREST_VERSION "com_cumulocity_MbedAgent_1.5.2"
xinlei 113:3872569be2af 11
xinlei 113:3872569be2af 12 extern char srTenant[];
xinlei 113:3872569be2af 13 extern char srUsername[];
xinlei 113:3872569be2af 14 extern char srPassword[];
xinlei 99:e369fc75c000 15 extern char srAuthStr[];
xinlei 113:3872569be2af 16 extern char fmtSmartRest[];
xinlei 99:e369fc75c000 17 extern const char *srX_ID;
xinlei 99:e369fc75c000 18 extern const char *srHost;
xinlei 99:e369fc75c000 19 extern long deviceID;
xinlei 106:c61f0d62b625 20 const int srPort = 80;
xinlei 106:c61f0d62b625 21 const int srSSLPort = 443;
xinlei 93:0acd11870c6a 22
xinlei 99:e369fc75c000 23 void setDeviceID(long id);
xinlei 113:3872569be2af 24 void setAuth(const char *tenant, const char *username, const char *password);
xinlei 113:3872569be2af 25 void setX_ID(const char *id);
xinlei 93:0acd11870c6a 26
xinlei 93:0acd11870c6a 27 #endif /* SMARTRESTCONF_H */