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
io/Storage.h@113:3872569be2af, 2015-05-15 (annotated)
- Committer:
- xinlei
- Date:
- Fri May 15 14:07:51 2015 +0000
- Revision:
- 113:3872569be2af
- Parent:
- 111:ee9ae4a5e55c
data smoothing for pots readings
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
xinlei | 104:a3703ca4a4a4 | 1 | #ifndef STORAGE_H |
xinlei | 104:a3703ca4a4a4 | 2 | #define STORAGE_H |
vwochnik | 67:c360a2b2c948 | 3 | |
vwochnik | 67:c360a2b2c948 | 4 | #include <stddef.h> |
vwochnik | 67:c360a2b2c948 | 5 | |
xinlei | 98:9f2de96941c4 | 6 | /** loads credentials from persistent memory */ |
xinlei | 113:3872569be2af | 7 | bool loadCredential(char *tenant, char *username, char *password, size_t len); |
xinlei | 98:9f2de96941c4 | 8 | |
xinlei | 98:9f2de96941c4 | 9 | /** saves credentials to persistent memory */ |
xinlei | 111:ee9ae4a5e55c | 10 | bool resetCredential(); |
xinlei | 98:9f2de96941c4 | 11 | |
xinlei | 98:9f2de96941c4 | 12 | /** removes credentials from persistent memory */ |
xinlei | 113:3872569be2af | 13 | bool saveCredential(const char *tenant, const char *username, |
xinlei | 113:3872569be2af | 14 | const char *password, size_t len); |
vwochnik | 68:0dc778a16d0d | 15 | |
xinlei | 98:9f2de96941c4 | 16 | /** loads configuration from persistent memory */ |
xinlei | 101:dbcd3bc51758 | 17 | bool loadConfigFile(char *cfg, size_t len); |
xinlei | 98:9f2de96941c4 | 18 | |
xinlei | 98:9f2de96941c4 | 19 | /** saves configuration to persistent memory */ |
xinlei | 101:dbcd3bc51758 | 20 | bool saveConfigFile(char *cfg, size_t len); |
xinlei | 98:9f2de96941c4 | 21 | |
vwochnik | 67:c360a2b2c948 | 22 | #endif |