ESPHome 2026.4.0-dev
Loading...
Searching...
No Matches
preference_backend.h
Go to the documentation of this file.
1#pragma once
2#ifdef USE_ESP8266
3
4#include <cstddef>
5#include <cstdint>
6
7namespace esphome::esp8266 {
8
10 public:
11 bool save(const uint8_t *data, size_t len);
12 bool load(uint8_t *data, size_t len);
13
15 uint16_t offset = 0;
16 uint8_t length_words = 0; // Max 255 words (1020 bytes of data)
17 bool in_flash = false;
18};
19
22
23} // namespace esphome::esp8266
24
25namespace esphome {
27} // namespace esphome
28
29#endif // USE_ESP8266
bool save(const uint8_t *data, size_t len)
bool load(uint8_t *data, size_t len)
ESP8266Preferences * get_preferences()
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7
std::string size_t len
Definition helpers.h:1045
static void uint32_t