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@104:a3703ca4a4a4, 2015-05-08 (annotated)
- Committer:
- xinlei
- Date:
- Fri May 08 13:15:29 2015 +0000
- Revision:
- 104:a3703ca4a4a4
- Parent:
- io/DeviceMemory.h@101:dbcd3bc51758
- Child:
- 111:ee9ae4a5e55c
rename files to meaningful names
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 | 101:dbcd3bc51758 | 7 | bool loadCredential(char *username, char *password, size_t len); |
xinlei | 98:9f2de96941c4 | 8 | |
xinlei | 98:9f2de96941c4 | 9 | /** saves credentials to persistent memory */ |
xinlei | 101:dbcd3bc51758 | 10 | bool delCredential(); |
xinlei | 98:9f2de96941c4 | 11 | |
xinlei | 98:9f2de96941c4 | 12 | /** removes credentials from persistent memory */ |
xinlei | 101:dbcd3bc51758 | 13 | bool saveCredential(char *username, char *password, size_t len); |
vwochnik | 68:0dc778a16d0d | 14 | |
xinlei | 98:9f2de96941c4 | 15 | /** loads configuration from persistent memory */ |
xinlei | 101:dbcd3bc51758 | 16 | bool loadConfigFile(char *cfg, size_t len); |
xinlei | 98:9f2de96941c4 | 17 | |
xinlei | 98:9f2de96941c4 | 18 | /** saves configuration to persistent memory */ |
xinlei | 101:dbcd3bc51758 | 19 | bool saveConfigFile(char *cfg, size_t len); |
xinlei | 98:9f2de96941c4 | 20 | |
xinlei | 98:9f2de96941c4 | 21 | /** removes configuration from persistent memory */ |
xinlei | 101:dbcd3bc51758 | 22 | bool delConfigFile(); |
vwochnik | 67:c360a2b2c948 | 23 | #endif |