Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
io/DeviceMemory.h@100:dbcd3bc51758, 2015-05-08 (annotated)
- Committer:
- xinlei
- Date:
- Fri May 08 12:19:57 2015 +0000
- Revision:
- 100:dbcd3bc51758
- Parent:
- 97:9f2de96941c4
v2.1rc3
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| vwochnik | 67:c360a2b2c948 | 1 | #ifndef DEVICEMEMORY_H |
| vwochnik | 67:c360a2b2c948 | 2 | #define DEVICEMEMORY_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 | 100:dbcd3bc51758 | 7 | bool loadCredential(char *username, char *password, size_t len); |
| xinlei | 97:9f2de96941c4 | 8 | |
| xinlei | 97:9f2de96941c4 | 9 | /** saves credentials to persistent memory */ |
| xinlei | 100:dbcd3bc51758 | 10 | bool delCredential(); |
| xinlei | 97:9f2de96941c4 | 11 | |
| xinlei | 97:9f2de96941c4 | 12 | /** removes credentials from persistent memory */ |
| xinlei | 100:dbcd3bc51758 | 13 | bool saveCredential(char *username, char *password, size_t len); |
| vwochnik | 68:0dc778a16d0d | 14 | |
| xinlei | 97:9f2de96941c4 | 15 | /** loads configuration from persistent memory */ |
| xinlei | 100:dbcd3bc51758 | 16 | bool loadConfigFile(char *cfg, size_t len); |
| xinlei | 97:9f2de96941c4 | 17 | |
| xinlei | 97:9f2de96941c4 | 18 | /** saves configuration to persistent memory */ |
| xinlei | 100:dbcd3bc51758 | 19 | bool saveConfigFile(char *cfg, size_t len); |
| xinlei | 97:9f2de96941c4 | 20 | |
| xinlei | 97:9f2de96941c4 | 21 | /** removes configuration from persistent memory */ |
| xinlei | 100:dbcd3bc51758 | 22 | bool delConfigFile(); |
| vwochnik | 67:c360a2b2c948 | 23 | #endif |
