ESPHome 2026.4.0-dev
Loading...
Searching...
No Matches
esphome::esp8266::ESP8266PreferenceBackend 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 type = 0
 
uint16_t offset = 0
 
uint8_t length_words = 0
 
bool in_flash = false
 

Detailed Description

Definition at line 9 of file preference_backend.h.

Member Function Documentation

◆ load()

bool esphome::esp8266::ESP8266PreferenceBackend::load ( uint8_t * data,
size_t len )

Definition at line 152 of file preferences.cpp.

◆ save()

bool esphome::esp8266::ESP8266PreferenceBackend::save ( const uint8_t * data,
size_t len )

Definition at line 138 of file preferences.cpp.

Field Documentation

◆ in_flash

bool esphome::esp8266::ESP8266PreferenceBackend::in_flash = false

Definition at line 17 of file preference_backend.h.

◆ length_words

uint8_t esphome::esp8266::ESP8266PreferenceBackend::length_words = 0

Definition at line 16 of file preference_backend.h.

◆ offset

uint16_t esphome::esp8266::ESP8266PreferenceBackend::offset = 0

Definition at line 15 of file preference_backend.h.

◆ type

uint32_t esphome::esp8266::ESP8266PreferenceBackend::type = 0

Definition at line 14 of file preference_backend.h.


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