ESPHome  2021.11.3
Public Member Functions
esphome::ESPPreferences Class Referenceabstract

#include <preferences.h>

Inherited by esphome::esp32::ESP32Preferences, and esphome::esp8266::ESP8266Preferences.

Public Member Functions

virtual ESPPreferenceObject make_preference (size_t length, uint32_t type, bool in_flash)=0
 
virtual ESPPreferenceObject make_preference (size_t length, uint32_t type)=0
 
virtual bool sync ()=0
 Commit pending writes to flash. More...
 
template<typename T >
ESPPreferenceObject make_preference (uint32_t type, bool in_flash)
 
template<typename T >
ESPPreferenceObject make_preference (uint32_t type)
 

Detailed Description

Definition at line 36 of file preferences.h.

Member Function Documentation

◆ make_preference() [1/4]

virtual ESPPreferenceObject esphome::ESPPreferences::make_preference ( size_t  length,
uint32_t  type,
bool  in_flash 
)
pure virtual

◆ make_preference() [2/4]

virtual ESPPreferenceObject esphome::ESPPreferences::make_preference ( size_t  length,
uint32_t  type 
)
pure virtual

◆ make_preference() [3/4]

template<typename T >
ESPPreferenceObject esphome::ESPPreferences::make_preference ( uint32_t  type,
bool  in_flash 
)
inline

Definition at line 54 of file preferences.h.

◆ make_preference() [4/4]

template<typename T >
ESPPreferenceObject esphome::ESPPreferences::make_preference ( uint32_t  type)
inline

Definition at line 62 of file preferences.h.

◆ sync()

virtual bool esphome::ESPPreferences::sync ( )
pure virtual

Commit pending writes to flash.

Returns
true if write is successful.

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