|
MeshX 0.4
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.
|
Portable Key-Value Engine for MeshX. More...
#include "meshx_err.h"#include "interface/utils/meshx_fal_interface.h"#include <stdint.h>#include <stdbool.h>Go to the source code of this file.
Functions | |
| meshx_err_t | meshx_kv_engine_init (const meshx_fal_partition_t *part) |
| Initialize the KV engine. | |
| meshx_err_t | meshx_kv_engine_read (const char *key, void *buf, uint16_t len) |
| Read a value from the KV engine. | |
| meshx_err_t | meshx_kv_engine_set (const char *key, const void *buf, uint16_t len) |
| Buffer a write operation in RAM. | |
| meshx_err_t | meshx_kv_engine_commit (void) |
| Commit all buffered changes to flash. | |
| meshx_err_t | meshx_kv_engine_remove (const char *key) |
| Remove a key from the KV engine. | |
| meshx_err_t | meshx_kv_engine_erase_all (void) |
| Erase the entire KV partition. | |
Portable Key-Value Engine for MeshX.
Copyright © 2024 - 2025 MeshX
This engine provides a lightweight KV store with built-in wear-leveling and power-fail safety, designed to run on top of the FAL interface.
| meshx_err_t meshx_kv_engine_commit | ( | void | ) |
Commit all buffered changes to flash.
< "MX"
< "MX"
| meshx_err_t meshx_kv_engine_erase_all | ( | void | ) |
Erase the entire KV partition.
| meshx_err_t meshx_kv_engine_init | ( | const meshx_fal_partition_t * | part | ) |
Initialize the KV engine.
| [in] | part | Pointer to the flash partition to use. |
< "MX"
| meshx_err_t meshx_kv_engine_read | ( | const char * | key, |
| void * | buf, | ||
| uint16_t | len ) |
Read a value from the KV engine.
| [in] | key | Key name. |
| [out] | buf | Buffer to store read data. |
| [in] | len | Length of the data to read. |
< "MX"
| meshx_err_t meshx_kv_engine_remove | ( | const char * | key | ) |
Remove a key from the KV engine.
| [in] | key | Key name. |
| meshx_err_t meshx_kv_engine_set | ( | const char * | key, |
| const void * | buf, | ||
| uint16_t | len ) |
Buffer a write operation in RAM.
| [in] | key | Key name. |
| [in] | buf | Buffer containing data to write. |
| [in] | len | Length of the data. |