Own fork of MbedSmartRestMain

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Cumulocity Official

Committer:
xinlei
Date:
Mon Aug 08 11:05:57 2016 +0000
Revision:
138:f8ab852e83e7
Parent:
112:3872569be2af
Etisalat and Teleena APN.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
xinlei 103:a3703ca4a4a4 1 #ifndef STORAGE_H
xinlei 103:a3703ca4a4a4 2 #define STORAGE_H
vwochnik 67:c360a2b2c948 3
vwochnik 67:c360a2b2c948 4 #include <stddef.h>
vwochnik 67:c360a2b2c948 5
xinlei 97:9f2de96941c4 6 /** loads credentials from persistent memory */
xinlei 112:3872569be2af 7 bool loadCredential(char *tenant, char *username, char *password, size_t len);
xinlei 97:9f2de96941c4 8
xinlei 97:9f2de96941c4 9 /** saves credentials to persistent memory */
xinlei 110:ee9ae4a5e55c 10 bool resetCredential();
xinlei 97:9f2de96941c4 11
xinlei 97:9f2de96941c4 12 /** removes credentials from persistent memory */
xinlei 112:3872569be2af 13 bool saveCredential(const char *tenant, const char *username,
xinlei 112:3872569be2af 14 const char *password, size_t len);
vwochnik 68:0dc778a16d0d 15
xinlei 97:9f2de96941c4 16 /** loads configuration from persistent memory */
xinlei 100:dbcd3bc51758 17 bool loadConfigFile(char *cfg, size_t len);
xinlei 97:9f2de96941c4 18
xinlei 97:9f2de96941c4 19 /** saves configuration to persistent memory */
xinlei 100:dbcd3bc51758 20 bool saveConfigFile(char *cfg, size_t len);
xinlei 97:9f2de96941c4 21
vwochnik 67:c360a2b2c948 22 #endif