|
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.
|
Implementation of MeshX Relay Element. This file contains the implementation of the MeshX Relay Element class, which represents a relay element in the MeshX BLE mesh network. Key Features: More...
#include <variants/meshx_relay_element.hpp>#include "meshx_element_factory.hpp"#include "meshx_element_registry.hpp"Macros | |
| #define | CONFIG_SERVER_CB_MASK |
| #define | RELAY_SRV_TO_BLE_EVT_MASK CONTROL_TASK_MSG_EVT_TO_BLE_SET_ON_OFF_SRV |
| #define | RELAY_CLI_TO_BLE_EVT_MASK CONTROL_TASK_MSG_EVT_TO_BLE_SET_ON_OFF |
Functions | |
| meshx_err_t | relay_cli_ut_handler (int cmd_id, int argc, char **argv) |
| meshx_err_t | relay_srv_ut_handler (int cmd_id, int argc, char **argv) |
| meshx_err_t | create_relay_server_elements_cpp (dev_struct_t *pdev, uint16_t element_cnt) |
| C++ factory for Relay Server elements. | |
| meshx_err_t | create_relay_client_elements_cpp (dev_struct_t *pdev, uint16_t element_cnt) |
| C++ factory for Relay Client elements. | |
| meshx_err_t | meshx_relay_el_set_state (uint16_t el_id, bool ack) |
| meshx_err_t | meshx_relay_el_get_state (uint16_t el_id) |
Implementation of MeshX Relay Element. This file contains the implementation of the MeshX Relay Element class, which represents a relay element in the MeshX BLE mesh network. Key Features:
| #define CONFIG_SERVER_CB_MASK |
| #define RELAY_CLI_TO_BLE_EVT_MASK CONTROL_TASK_MSG_EVT_TO_BLE_SET_ON_OFF |
| #define RELAY_SRV_TO_BLE_EVT_MASK CONTROL_TASK_MSG_EVT_TO_BLE_SET_ON_OFF_SRV |
| meshx_err_t create_relay_client_elements_cpp | ( | dev_struct_t * | pdev, |
| uint16_t | element_cnt ) |
C++ factory for Relay Client elements.
Constructs CONFIG_RELAY_CLIENT_COUNT meshXRelayClientElement objects and registers each with the platform BLE Mesh composition.
| pdev | Pointer to the device structure. |
| element_cnt | Number of relay client elements to create. Capped by CONFIG_RELAY_CLIENT_COUNT. |
| meshx_err_t create_relay_server_elements_cpp | ( | dev_struct_t * | pdev, |
| uint16_t | element_cnt ) |
C++ factory for Relay Server elements.
Constructs CONFIG_RELAY_SERVER_COUNT meshXRelayServerElement objects and registers each with the platform BLE Mesh composition.
| pdev | Pointer to the device structure. |
| element_cnt | Number of relay server elements to create. Capped by CONFIG_RELAY_SERVER_COUNT. |
| meshx_err_t meshx_relay_el_get_state | ( | uint16_t | el_id | ) |
| meshx_err_t meshx_relay_el_set_state | ( | uint16_t | el_id, |
| bool | ack ) |
| meshx_err_t relay_cli_ut_handler | ( | int | cmd_id, |
| int | argc, | ||
| char ** | argv ) |
| meshx_err_t relay_srv_ut_handler | ( | int | cmd_id, |
| int | argc, | ||
| char ** | argv ) |