ESPHome 2026.11.0b6
Loading...
Searching...
No Matches
esphome::libretiny::LibreTinyPreferences Class Referencefinal

#include <preferences.h>

Inheritance diagram for esphome::libretiny::LibreTinyPreferences:
esphome::PreferencesMixin< LibreTinyPreferences >

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_ ()
 

Detailed Description

Definition at line 12 of file preferences.h.

Member Function Documentation

◆ discard_rtc_entries_()

void esphome::libretiny::LibreTinyPreferences::discard_rtc_entries_ ( )
protected

Definition at line 124 of file preferences.cpp.

◆ is_changed_()

bool esphome::libretiny::LibreTinyPreferences::is_changed_ ( fdb_kvdb_t db,
const NVSData & to_save,
const char * key_str )
protected

Definition at line 211 of file preferences.cpp.

◆ load_from_key()

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.

◆ make_backend_()

LibreTinyPreferenceBackend esphome::libretiny::LibreTinyPreferences::make_backend_ ( uint32_t type,
bool rtc = false )
protected

Definition at line 149 of file preferences.cpp.

◆ make_preference() [1/3]

ESPPreferenceObject esphome::libretiny::LibreTinyPreferences::make_preference ( size_t length,
uint32_t type )

Definition at line 144 of file preferences.cpp.

◆ make_preference() [2/3]

ESPPreferenceObject esphome::libretiny::LibreTinyPreferences::make_preference ( size_t length,
uint32_t type,
bool in_flash )

Definition at line 116 of file preferences.cpp.

◆ make_preference() [3/3]

ESPPreferenceObject esphome::libretiny::LibreTinyPreferences::make_preference ( size_t length,
uint32_t type,
bool in_flash )
inline

Definition at line 20 of file preferences.h.

◆ open()

void esphome::libretiny::LibreTinyPreferences::open ( )

Definition at line 101 of file preferences.cpp.

◆ reset()

bool esphome::libretiny::LibreTinyPreferences::reset ( )

Definition at line 238 of file preferences.cpp.

◆ sync()

bool esphome::libretiny::LibreTinyPreferences::sync ( )

Definition at line 165 of file preferences.cpp.

Field Documentation

◆ blob

struct fdb_blob esphome::libretiny::LibreTinyPreferences::blob

Definition at line 31 of file preferences.h.

◆ db

struct fdb_kvdb esphome::libretiny::LibreTinyPreferences::db

Definition at line 30 of file preferences.h.


The documentation for this class was generated from the following files: