ESPHome 2026.8.0-dev
Loading...
Searching...
No Matches
esphome::esp32::ESP32PreferenceBackend 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)
 

Data Fields

uint32_t key {0}
 
uint32_t nvs_handle {0}
 
uint16_t rtc_offset {0}
 
uint8_t length_words {0}
 
bool in_flash {true}
 

Detailed Description

Definition at line 9 of file preference_backend.h.

Member Function Documentation

◆ load()

bool esphome::esp32::ESP32PreferenceBackend::load ( uint8_t * data,
size_t len )

Definition at line 92 of file preferences.cpp.

◆ save()

bool esphome::esp32::ESP32PreferenceBackend::save ( const uint8_t * data,
size_t len )

Definition at line 72 of file preferences.cpp.

Field Documentation

◆ in_flash

bool esphome::esp32::ESP32PreferenceBackend::in_flash {true}

Definition at line 18 of file preference_backend.h.

◆ key

uint32_t esphome::esp32::ESP32PreferenceBackend::key {0}

Definition at line 14 of file preference_backend.h.

◆ length_words

uint8_t esphome::esp32::ESP32PreferenceBackend::length_words {0}

Definition at line 17 of file preference_backend.h.

◆ nvs_handle

uint32_t esphome::esp32::ESP32PreferenceBackend::nvs_handle {0}

Definition at line 15 of file preference_backend.h.

◆ rtc_offset

uint16_t esphome::esp32::ESP32PreferenceBackend::rtc_offset {0}

Definition at line 16 of file preference_backend.h.


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