ESPHome 2026.8.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
8// NOLINTBEGIN(readability-identifier-naming)
9struct fdb_kvdb;
10struct fdb_blob;
11// NOLINTEND(readability-identifier-naming)
12
13namespace esphome::libretiny {
14
16 public:
17 bool save(const uint8_t *data, size_t len);
18 bool load(uint8_t *data, size_t len);
19
21 struct fdb_kvdb *db;
22 struct fdb_blob *blob;
23};
24
27
28} // namespace esphome::libretiny
29
30namespace esphome {
32} // namespace esphome
33
34#endif // USE_LIBRETINY
bool load(uint8_t *data, size_t len)
bool save(const uint8_t *data, size_t len)
LibreTinyPreferences * get_preferences()
const void size_t len
Definition hal.h:64
static void uint32_t