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_LIBRETINY
3
4#include <cstddef>
5#include <cstdint>
6
7// Forward declare FlashDB types to avoid pulling in flashdb.h
8struct fdb_kvdb;
9struct fdb_blob;
10
11namespace esphome::libretiny {
12
14 public:
15 bool save(const uint8_t *data, size_t len);
16 bool load(uint8_t *data, size_t len);
17
19 struct fdb_kvdb *db;
20 struct fdb_blob *blob;
21};
22
25
26} // namespace esphome::libretiny
27
28namespace esphome {
30} // namespace esphome
31
32#endif // USE_LIBRETINY
bool load(uint8_t *data, size_t len)
bool save(const uint8_t *data, size_t len)
LibreTinyPreferences * 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