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
Diff: io/Storage.h
- Revision:
- 103:a3703ca4a4a4
- Parent:
- 100:dbcd3bc51758
- Child:
- 110:ee9ae4a5e55c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/io/Storage.h Fri May 08 13:15:29 2015 +0000 @@ -0,0 +1,23 @@ +#ifndef STORAGE_H +#define STORAGE_H + +#include <stddef.h> + +/** loads credentials from persistent memory */ +bool loadCredential(char *username, char *password, size_t len); + +/** saves credentials to persistent memory */ +bool delCredential(); + +/** removes credentials from persistent memory */ +bool saveCredential(char *username, char *password, size_t len); + +/** loads configuration from persistent memory */ +bool loadConfigFile(char *cfg, size_t len); + +/** saves configuration to persistent memory */ +bool saveConfigFile(char *cfg, size_t len); + +/** removes configuration from persistent memory */ +bool delConfigFile(); +#endif \ No newline at end of file