AWS IoT for ESP32 v1.0.0
An ESP-IDF based solution
|
Flash library header file. More...
Go to the source code of this file.
Functions | |
void | FLASH_printConfig () |
Print stored device configuration. More... | |
bool | FLASH_updatePending () |
Check if a dataset is updated. More... | |
bool | FLASH_isDeviceRegistered () |
Check if the device is registered with AWS IoT. More... | |
char * | FLASH_getCertificate (deviceCertType_et certType_e) |
Get the given certificate from stored configuration. More... | |
const char * | FLASH_getThingName () |
Get thing name from stored configuration. More... | |
bool | FLASH_appDataRead (void *pData, uint16_t size_u16) |
Read the data from application dataset. More... | |
bool | FLASH_appDataWrite (void *pData, uint16_t size_u16) |
Store the given data to application data set. More... | |
bool | FLASH_appDataEraseAll () |
Erase stored application dataset. More... | |
Flash library header file.
enum deviceCertType_et |
An enum to represent Device Configuration parameters.
enum flashDataSet_et |
An enum to represent available Flash Datasets.
enum flashStatus_t |
An enum to represent the status of flash operations.
bool FLASH_appDataEraseAll | ( | ) |
Erase stored application dataset.
none |
true | on success |
false | on failure |
bool FLASH_appDataRead | ( | void * | pData, |
uint16_t | size_u16 | ||
) |
Read the data from application dataset.
[out] | pData | Data buffer |
[in] | pData | Length of data |
true | on successful read |
false | on failure |
bool FLASH_appDataWrite | ( | void * | pData, |
uint16_t | size_u16 | ||
) |
Store the given data to application data set.
[in] | pData | Data to be written |
[in] | size_u16 | Length of data |
true | on success |
false | on failure |
char * FLASH_getCertificate | ( | deviceCertType_et | certType_e | ) |
Get the given certificate from stored configuration.
[in] | certType_e | Type of certificate |
const char * FLASH_getThingName | ( | ) |
Get thing name from stored configuration.
none |
bool FLASH_isDeviceRegistered | ( | ) |
Check if the device is registered with AWS IoT.
none |
true | is device is registered |
false | if device is not registered yet. |
void FLASH_printConfig | ( | ) |
Print stored device configuration.
none |
bool FLASH_updatePending | ( | ) |
Check if a dataset is updated.
none |
true | if a dataset is updated |
false | if not updated |