ESPHome 2026.9.0-dev
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 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)
 

Detailed Description

Definition at line 11 of file preferences.h.

Member Function Documentation

◆ is_changed_()

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

Definition at line 136 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 85 of file preferences.cpp.

◆ make_backend_()

LibreTinyPreferenceBackend esphome::libretiny::LibreTinyPreferences::make_backend_ ( uint32_t type)
protected

Definition at line 77 of file preferences.cpp.

◆ make_preference() [1/2]

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

Definition at line 72 of file preferences.cpp.

◆ make_preference() [2/2]

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

Definition at line 15 of file preferences.h.

◆ open()

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

Definition at line 62 of file preferences.cpp.

◆ reset()

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

Definition at line 162 of file preferences.cpp.

◆ sync()

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

Definition at line 90 of file preferences.cpp.

Field Documentation

◆ blob

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

Definition at line 25 of file preferences.h.

◆ db

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

Definition at line 24 of file preferences.h.


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