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.
|
Header file for the Relay Server Model. More...
Go to the source code of this file.
Data Structures | |
struct | meshx_relay_srv_model_ctx |
Structure to hold the relay server save restore context. More... | |
struct | meshx_relay_element |
Structure to manage relay element models. More... | |
struct | meshx_relay_element_ctrl |
Structure to manage relay element initialization. More... | |
Macros | |
#define | RELAY_SRV_MODEL_SIG_CNT RELAY_SIG_MAX_ID |
#define | RELAY_SRV_MODEL_VEN_CNT 0 |
Typedefs | |
typedef struct meshx_relay_srv_model_ctx | meshx_relay_srv_model_ctx_t |
Structure to hold the relay server save restore context. | |
typedef struct meshx_relay_element | meshx_relay_element_t |
Structure to manage relay element models. | |
typedef struct meshx_relay_element_ctrl | meshx_relay_element_ctrl_t |
Structure to manage relay element initialization. | |
Enumerations | |
enum | relay_sig_id_t { RELAY_SIG_ONOFF_MODEL_ID , RELAY_SIG_MAX_ID } |
Functions | |
meshx_err_t | meshx_create_relay_elements (dev_struct_t *pdev, uint16_t element_cnt) |
Create Dynamic Relay Model Elements. | |
Header file for the Relay Server Model.
Copyright © 2024 - 2025 MeshX
This file contains the definitions and function prototypes for the Relay Server Model. The Relay Server Model is responsible for managing the relay elements and their states.
Definition in file meshx_relay_server_element.h.
#define RELAY_SRV_MODEL_SIG_CNT RELAY_SIG_MAX_ID |
No of SIG models in a relay model element
Definition at line 20 of file meshx_relay_server_element.h.
#define RELAY_SRV_MODEL_VEN_CNT 0 |
No of VEN models in a relay model element
Definition at line 21 of file meshx_relay_server_element.h.
typedef struct meshx_relay_element_ctrl meshx_relay_element_ctrl_t |
Structure to manage relay element initialization.
typedef struct meshx_relay_element meshx_relay_element_t |
Structure to manage relay element models.
typedef struct meshx_relay_srv_model_ctx meshx_relay_srv_model_ctx_t |
Structure to hold the relay server save restore context.
enum relay_sig_id_t |
Enumerator | |
---|---|
RELAY_SIG_ONOFF_MODEL_ID | On/Off model ID |
RELAY_SIG_MAX_ID | Maximum model ID |
Definition at line 23 of file meshx_relay_server_element.h.
meshx_err_t meshx_create_relay_elements | ( | dev_struct_t * | pdev, |
uint16_t | element_cnt ) |
Create Dynamic Relay Model Elements.
[in] | pdev | Pointer to device structure |
[in] | element_cnt | Maximum number of relay models |
Definition at line 497 of file meshx_relay_server.c.