|
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.
|
Template-based factory helper for creating MeshX elements. More...
Go to the source code of this file.
Functions | |
| template<typename ElementType, typename ContextType> | |
| meshx_err_t | meshx_element_factory_helper (dev_struct_t *pdev, uint16_t requested_cnt, uint16_t max_cnt, module_id_t module_id, const char *log_name) |
| Helper function to create and register mesh elements. | |
Template-based factory helper for creating MeshX elements.
This header provides a generic factory function to reduce boilerplate code when creating and registering different types of mesh elements.
| meshx_err_t meshx_element_factory_helper | ( | dev_struct_t * | pdev, |
| uint16_t | requested_cnt, | ||
| uint16_t | max_cnt, | ||
| module_id_t | module_id, | ||
| const char * | log_name ) |
Helper function to create and register mesh elements.
| ElementType | The concrete class of the element to create. |
| ContextType | The type of the element's NVS context structure. |
| pdev | Pointer to the device structure. |
| requested_cnt | Number of elements requested to be created. |
| max_cnt | Compile-time maximum number of elements supported. |
| module_id | Module identifier for logging. |
| log_name | Human-readable name of the element type for logging. |