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

#include <preference_backend.h>

Public Member Functions

bool save (const uint8_t *data, size_t len)
 
bool load (uint8_t *data, size_t len)
 
bool is_rtc () const
 

Static Public Member Functions

static constexpr bool is_rtc ()
 

Data Fields

uint32_t key
 
struct fdb_kvdb * db
 
struct fdb_blob * blob
 
bool rtc {false}
 

Detailed Description

Definition at line 17 of file preference_backend.h.

Member Function Documentation

◆ is_rtc() [1/2]

static constexpr bool esphome::libretiny::LibreTinyPreferenceBackend::is_rtc ( )
inlinestaticconstexpr

Definition at line 31 of file preference_backend.h.

◆ is_rtc() [2/2]

bool esphome::libretiny::LibreTinyPreferenceBackend::is_rtc ( ) const
inline

Definition at line 29 of file preference_backend.h.

◆ load()

bool esphome::libretiny::LibreTinyPreferenceBackend::load ( uint8_t * data,
size_t len )

Definition at line 75 of file preferences.cpp.

◆ save()

bool esphome::libretiny::LibreTinyPreferenceBackend::save ( const uint8_t * data,
size_t len )

Definition at line 56 of file preferences.cpp.

Field Documentation

◆ blob

struct fdb_blob* esphome::libretiny::LibreTinyPreferenceBackend::blob

Definition at line 24 of file preference_backend.h.

◆ db

struct fdb_kvdb* esphome::libretiny::LibreTinyPreferenceBackend::db

Definition at line 23 of file preference_backend.h.

◆ key

uint32_t esphome::libretiny::LibreTinyPreferenceBackend::key

Definition at line 22 of file preference_backend.h.

◆ rtc

bool esphome::libretiny::LibreTinyPreferenceBackend::rtc {false}

Definition at line 28 of file preference_backend.h.


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