#include <preferences.h>
|
bool | sync () override |
|
bool | reset () override |
|
ESPPreferenceObject | make_preference (size_t length, uint32_t type, bool in_flash) override |
|
ESPPreferenceObject | make_preference (size_t length, uint32_t type) override |
|
bool | save (uint32_t key, const uint8_t *data, size_t len) |
|
bool | load (uint32_t key, uint8_t *data, size_t len) |
|
template<typename T , enable_if_t< is_trivially_copyable< T >::value, bool > = true> |
ESPPreferenceObject | make_preference (uint32_t type, bool in_flash) |
|
template<typename T , enable_if_t< is_trivially_copyable< T >::value, bool > = true> |
ESPPreferenceObject | make_preference (uint32_t type) |
|
Definition at line 22 of file preferences.h.
◆ load()
bool esphome::host::HostPreferences::load |
( |
uint32_t |
key, |
|
|
uint8_t * |
data, |
|
|
size_t |
len |
|
) |
| |
|
inline |
◆ make_preference() [1/2]
ESPPreferenceObject esphome::host::HostPreferences::make_preference |
( |
size_t |
length, |
|
|
uint32_t |
type, |
|
|
bool |
in_flash |
|
) |
| |
|
overridevirtual |
◆ make_preference() [2/2]
ESPPreferenceObject esphome::host::HostPreferences::make_preference |
( |
size_t |
length, |
|
|
uint32_t |
type |
|
) |
| |
|
inlineoverridevirtual |
◆ reset()
bool esphome::host::HostPreferences::reset |
( |
| ) |
|
|
overridevirtual |
◆ 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 |
( |
| ) |
|
|
overridevirtual |
◆ 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: