MeshX 0.3
This repository provides an implementation for Bluetooth Low Energy (BLE) Mesh network nodes. The project allows you to create BLE mesh nodes that can communicate with each other, enabling the development of smart home solutions or other IoT-based applications.
Loading...
Searching...
No Matches
meshx_nvs_interface.h
Go to the documentation of this file.
1
10
11#ifndef __MESHX_NVS_INTERFACE_H__
12#define __MESHX_NVS_INTERFACE_H__
13
14#include "meshx_err.h"
15#include <stdint.h>
16#include <stddef.h>
17
31meshx_err_t meshx_nvs_plat_open(uintptr_t *p_nvs_handle);
32
42meshx_err_t meshx_nvs_plat_close(uintptr_t p_nvs_handle);
43
56meshx_err_t meshx_nvs_plat_read(uintptr_t p_nvs_handle, char const *key , uint8_t *p_data, uint16_t len);
57
70meshx_err_t meshx_nvs_plat_write(uintptr_t p_nvs_handle, char const * key, uint8_t const *p_data, uint16_t len);
71
81meshx_err_t meshx_nvs_plat_erase(uintptr_t p_nvs_handle);
82
93meshx_err_t meshx_nvs_plat_remove(uintptr_t p_nvs_handle, char const* key);
94
107meshx_err_t meshx_nvs_plat_commit(uintptr_t p_nvs_handle);
108
109#endif /* __MESHX_NVS_INTERFACE_H__ */
MeshX Error Codes.
meshx_err_t
MeshX Error Codes.
Definition meshx_err.h:39
meshx_err_t meshx_nvs_plat_read(uintptr_t p_nvs_handle, char const *key, uint8_t *p_data, uint16_t len)
Read blob value for given key from non-volatile storage.
Definition esp_nvs.c:92
meshx_err_t meshx_nvs_plat_open(uintptr_t *p_nvs_handle)
Open non-volatile storage with a given namespace from the default partition.
Definition esp_nvs.c:34
meshx_err_t meshx_nvs_plat_write(uintptr_t p_nvs_handle, char const *key, uint8_t const *p_data, uint16_t len)
Write a blob value to the non-volatile storage with a given key and namespace.
Definition esp_nvs.c:126
meshx_err_t meshx_nvs_plat_commit(uintptr_t p_nvs_handle)
Commit changes to the non-volatile storage.
Definition esp_nvs.c:208
meshx_err_t meshx_nvs_plat_erase(uintptr_t p_nvs_handle)
Erase all key-value pairs in the given namespace.
Definition esp_nvs.c:156
meshx_err_t meshx_nvs_plat_remove(uintptr_t p_nvs_handle, char const *key)
Remove a key-value pair from the non-volatile storage with a given key and namespace.
Definition esp_nvs.c:181
meshx_err_t meshx_nvs_plat_close(uintptr_t p_nvs_handle)
Close the non-volatile storage handle.
Definition esp_nvs.c:72