#include <preferences.h>
|
| bool | sync () |
| |
| bool | reset () |
| |
| ESPPreferenceObject | make_preference (size_t length, uint32_t type, bool in_flash) |
| |
| ESPPreferenceObject | make_preference (size_t length, uint32_t type) |
| |
| bool | save (uint32_t key, const uint8_t *data, size_t len) |
| |
| bool | load_from_key (uint32_t type, uint8_t *data, size_t len) |
| | One-shot read of a stored preference by key, without allocating a backend.
|
| |
| bool | load (uint32_t key, uint8_t *data, size_t len) |
| |
| ESPPreferenceObject | make_preference (uint32_t type, bool in_flash) |
| |
| ESPPreferenceObject | make_preference (uint32_t type) |
| |
Definition at line 12 of file preferences.h.
◆ load()
| bool esphome::host::HostPreferences::load |
( |
uint32_t | key, |
|
|
uint8_t * | data, |
|
|
size_t | len ) |
|
inline |
◆ load_from_key()
| bool esphome::host::HostPreferences::load_from_key |
( |
uint32_t | type, |
|
|
uint8_t * | data, |
|
|
size_t | len ) |
|
inline |
One-shot read of a stored preference by key, without allocating a backend.
Definition at line 31 of file preferences.h.
◆ make_preference() [1/2]
◆ make_preference() [2/2]
◆ reset()
| bool esphome::host::HostPreferences::reset |
( |
| ) |
|
◆ save()
| bool esphome::host::HostPreferences::save |
( |
uint32_t | key, |
|
|
const uint8_t * | data, |
|
|
size_t | len ) |
|
inline |
◆ setup_()
| void esphome::host::HostPreferences::setup_ |
( |
| ) |
|
|
protected |
◆ sync()
| bool esphome::host::HostPreferences::sync |
( |
| ) |
|
◆ data_
| std::map<uint32_t, std::vector<uint8_t> > esphome::host::HostPreferences::data_ {} |
|
protected |
◆ filename_
| std::string esphome::host::HostPreferences::filename_ {} |
|
protected |
◆ setup_complete_
| bool esphome::host::HostPreferences::setup_complete_ {} |
|
protected |
The documentation for this class was generated from the following files: