|
ESPHome 2026.11.0b6
|
#include <preferences.h>
Public Member Functions | |
| void | open () |
| ESPPreferenceObject | make_preference (size_t length, uint32_t type, bool in_flash) |
| ESPPreferenceObject | make_preference (size_t length, uint32_t type, bool in_flash) |
| ESPPreferenceObject | make_preference (size_t length, uint32_t type) |
| 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 | sync () |
| bool | reset () |
Public Member Functions inherited from esphome::PreferencesMixin< LibreTinyPreferences > | |
| ESPPreferenceObject | make_preference (uint32_t type, bool in_flash) |
| ESPPreferenceObject | make_preference (uint32_t type) |
Data Fields | |
| struct fdb_kvdb | db |
| struct fdb_blob | blob |
Protected Member Functions | |
| LibreTinyPreferenceBackend | make_backend_ (uint32_t type, bool rtc=false) |
| bool | is_changed_ (fdb_kvdb_t db, const NVSData &to_save, const char *key_str) |
| void | discard_rtc_entries_ () |
Definition at line 12 of file preferences.h.
|
protected |
Definition at line 124 of file preferences.cpp.
|
protected |
Definition at line 211 of file preferences.cpp.
| bool esphome::libretiny::LibreTinyPreferences::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.
Definition at line 160 of file preferences.cpp.
|
protected |
Definition at line 149 of file preferences.cpp.
| ESPPreferenceObject esphome::libretiny::LibreTinyPreferences::make_preference | ( | size_t | length, |
| uint32_t | type ) |
Definition at line 144 of file preferences.cpp.
| ESPPreferenceObject esphome::libretiny::LibreTinyPreferences::make_preference | ( | size_t | length, |
| uint32_t | type, | ||
| bool | in_flash ) |
Definition at line 116 of file preferences.cpp.
|
inline |
Definition at line 20 of file preferences.h.
| void esphome::libretiny::LibreTinyPreferences::open | ( | ) |
Definition at line 101 of file preferences.cpp.
| bool esphome::libretiny::LibreTinyPreferences::reset | ( | ) |
Definition at line 238 of file preferences.cpp.
| bool esphome::libretiny::LibreTinyPreferences::sync | ( | ) |
Definition at line 165 of file preferences.cpp.
| struct fdb_blob esphome::libretiny::LibreTinyPreferences::blob |
Definition at line 31 of file preferences.h.
| struct fdb_kvdb esphome::libretiny::LibreTinyPreferences::db |
Definition at line 30 of file preferences.h.