Own fork of MbedSmartRestMain

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Cumulocity Official

io/Storage.h

Committer:
xinlei
Date:
2016-08-08
Revision:
138:f8ab852e83e7
Parent:
112:3872569be2af

File content as of revision 138:f8ab852e83e7:

#ifndef STORAGE_H
#define STORAGE_H

#include <stddef.h>

/** loads credentials from persistent memory */
bool loadCredential(char *tenant, char *username, char *password, size_t len);

/** saves credentials to persistent memory */
bool resetCredential();

/** removes credentials from persistent memory */
bool saveCredential(const char *tenant, const char *username,
                    const 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);

#endif