ESPHome 2026.4.0-dev
Loading...
Searching...
No Matches
esphome::esp8266::ESP8266Preferences Class Referencefinal

#include <preferences.h>

Inheritance diagram for esphome::esp8266::ESP8266Preferences:
esphome::PreferencesMixin< ESP8266Preferences >

Public Member Functions

void setup ()
 
ESPPreferenceObject make_preference (size_t length, uint32_t type, bool in_flash)
 
ESPPreferenceObject make_preference (size_t length, uint32_t type)
 
bool sync ()
 
bool reset ()
 
- Public Member Functions inherited from esphome::PreferencesMixin< ESP8266Preferences >
ESPPreferenceObject make_preference (uint32_t type, bool in_flash)
 
ESPPreferenceObject make_preference (uint32_t type)
 

Data Fields

uint32_t current_offset = 0
 
uint32_t current_flash_offset = 0
 

Detailed Description

Definition at line 8 of file preferences.h.

Member Function Documentation

◆ make_preference() [1/2]

ESPPreferenceObject esphome::esp8266::ESP8266Preferences::make_preference ( size_t length,
uint32_t type )
inline

Definition at line 13 of file preferences.h.

◆ make_preference() [2/2]

ESPPreferenceObject esphome::esp8266::ESP8266Preferences::make_preference ( size_t length,
uint32_t type,
bool in_flash )

Definition at line 178 of file preferences.cpp.

◆ reset()

bool esphome::esp8266::ESP8266Preferences::reset ( )

Definition at line 246 of file preferences.cpp.

◆ setup()

void esphome::esp8266::ESP8266Preferences::setup ( )

Definition at line 169 of file preferences.cpp.

◆ sync()

bool esphome::esp8266::ESP8266Preferences::sync ( )

Definition at line 218 of file preferences.cpp.

Field Documentation

◆ current_flash_offset

uint32_t esphome::esp8266::ESP8266Preferences::current_flash_offset = 0

Definition at line 24 of file preferences.h.

◆ current_offset

uint32_t esphome::esp8266::ESP8266Preferences::current_offset = 0

Definition at line 23 of file preferences.h.


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