|
libPocuter
1.0
Support library for programming the Pocuter
|
Go to the documentation of this file. 1 #ifndef POCUTERCONFIG_H
2 #define POCUTERCONFIG_H
22 PocuterConfig(
const uint8_t* configName, uint64_t* appID = NULL);
49 bool get(
const uint8_t* section,
const uint8_t* name, uint8_t* result,
size_t maxLength,
bool decrypt =
false);
62 bool set(
const uint8_t* section,
const uint8_t* name,
const uint8_t* value,
bool encrypt =
false);
74 bool del(
const uint8_t* section,
const uint8_t* name);
88 uint32_t
get(
const uint8_t* section,
const uint8_t* name);
101 bool set(
const uint8_t* section,
const uint8_t* name, uint32_t value);
117 bool getBinary(
const uint8_t* section,
const uint8_t* name,
void* result,
size_t maxLength,
bool decrypt =
false);
132 bool setBinary(
const uint8_t* section,
const uint8_t* name,
const void* value,
size_t valueLength,
bool encrypt =
false);
141 bool getEncrypted(
const uint8_t* section,
const uint8_t* name, uint8_t* result,
size_t maxLength);
142 bool setEncrypted(
const uint8_t* section,
const uint8_t* name,
const uint8_t* value);
144 uint8_t* m_configFile;
PocuterConfig(const uint8_t *configName, uint64_t *appID=NULL)
constructor for a new config instance
bool del(const uint8_t *section, const uint8_t *name)
delete a value
bool set(const uint8_t *section, const uint8_t *name, const uint8_t *value, bool encrypt=false)
set string data
bool setBinary(const uint8_t *section, const uint8_t *name, const void *value, size_t valueLength, bool encrypt=false)
set a binary data blob
bool getBinary(const uint8_t *section, const uint8_t *name, void *result, size_t maxLength, bool decrypt=false)
get a binary data blob
save configuration on the SD Card or get app specific configuration data
Definition: PocuterConfig.h:10
bool get(const uint8_t *section, const uint8_t *name, uint8_t *result, size_t maxLength, bool decrypt=false)
get string data