#include <preferences.h>
Definition at line 37 of file preferences.h.
◆ make_preference() [1/4]
virtual ESPPreferenceObject esphome::ESPPreferences::make_preference |
( |
size_t |
length, |
|
|
uint32_t |
type, |
|
|
bool |
in_flash |
|
) |
| |
|
pure virtual |
◆ make_preference() [2/4]
virtual ESPPreferenceObject esphome::ESPPreferences::make_preference |
( |
size_t |
length, |
|
|
uint32_t |
type |
|
) |
| |
|
pure virtual |
◆ make_preference() [3/4]
template<typename T , enable_if_t< is_trivially_copyable< T >::value, bool > = true>
◆ make_preference() [4/4]
template<typename T , enable_if_t< is_trivially_copyable< T >::value, bool > = true>
◆ reset()
virtual bool esphome::ESPPreferences::reset |
( |
| ) |
|
|
pure virtual |
Forget all unsaved changes and re-initialize the permanent preferences storage.
Usually followed by a restart which moves the system to "factory" conditions
- Returns
- true if operation is successful.
Implemented in esphome::host::HostPreferences.
◆ sync()
virtual bool esphome::ESPPreferences::sync |
( |
| ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: