|
ESPHome 2026.9.0-dev
|
#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 | 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 | is_changed_ (fdb_kvdb_t db, const NVSData &to_save, const char *key_str) |
Definition at line 11 of file preferences.h.
|
protected |
Definition at line 136 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 85 of file preferences.cpp.
|
protected |
Definition at line 77 of file preferences.cpp.
| ESPPreferenceObject esphome::libretiny::LibreTinyPreferences::make_preference | ( | size_t | length, |
| uint32_t | type ) |
Definition at line 72 of file preferences.cpp.
|
inline |
Definition at line 15 of file preferences.h.
| void esphome::libretiny::LibreTinyPreferences::open | ( | ) |
Definition at line 62 of file preferences.cpp.
| bool esphome::libretiny::LibreTinyPreferences::reset | ( | ) |
Definition at line 162 of file preferences.cpp.
| bool esphome::libretiny::LibreTinyPreferences::sync | ( | ) |
Definition at line 90 of file preferences.cpp.
| struct fdb_blob esphome::libretiny::LibreTinyPreferences::blob |
Definition at line 25 of file preferences.h.
| struct fdb_kvdb esphome::libretiny::LibreTinyPreferences::db |
Definition at line 24 of file preferences.h.