36[[nodiscard]]
inline int init() {
37 return ove_nvs_init();
55[[nodiscard]]
inline int read(
const char *key,
void *buf,
size_t len,
57 return ove_nvs_read(key, buf, len, out);
67[[nodiscard]]
inline int write(
const char *key,
const void *data,
69 return ove_nvs_write(key, data, len);
77[[nodiscard]]
inline int erase(
const char *key) {
78 return ove_nvs_erase(key);
int write(const char *key, const void *data, size_t len)
Writes a value associated with a key to NVS.
Definition nvs.hpp:67
void deinit()
Deinitialises the NVS subsystem and frees associated resources.
Definition nvs.hpp:43
int erase(const char *key)
Erases the value associated with a key from NVS.
Definition nvs.hpp:77
int init()
Initialises the NVS subsystem.
Definition nvs.hpp:36
int read(const char *key, void *buf, size_t len, size_t *out)
Reads the value associated with a key from NVS.
Definition nvs.hpp:55
Top-level namespace for all oveRTOS C++ abstractions.
Definition app.hpp:19
Common type definitions and concepts for the C++ wrapper layer.