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_relay_server_element.h
Go to the documentation of this file.
1
12#ifndef __RELAY_SERVER_MODEL_H__
13#define __RELAY_SERVER_MODEL_H__
14
15#include "meshx_common.h"
16#include "meshx_onoff_server.h"
17
18#if CONFIG_RELAY_SERVER_COUNT > 0
19
20#define RELAY_SRV_MODEL_SIG_CNT RELAY_SIG_MAX_ID
21#define RELAY_SRV_MODEL_VEN_CNT 0
22
28
33{
34 uint8_t tid;
35 uint16_t app_id;
36 uint16_t pub_addr;
37 meshx_on_off_srv_el_state_t state;
39
49
60
69meshx_err_t meshx_create_relay_elements(dev_struct_t *pdev, uint16_t element_cnt);
70
71#endif /* CONFIG_RELAY_SERVER_COUNT > 0 */
72#endif /*__RELAY_SERVER_MODEL_H__*/
Common application definitions and includes for BLE Mesh Node.
struct dev_struct dev_struct_t
Structure representing the device composition and elements.
meshx_err_t
MeshX Error Codes.
Definition meshx_err.h:39
Header file for the On/Off Server model in the BLE Mesh Node application.
#define MESHX_MODEL
struct meshx_relay_element_ctrl meshx_relay_element_ctrl_t
Structure to manage relay element initialization.
struct meshx_relay_srv_model_ctx meshx_relay_srv_model_ctx_t
Structure to hold the relay server save restore context.
@ RELAY_SIG_ONOFF_MODEL_ID
#define RELAY_SRV_MODEL_SIG_CNT
meshx_err_t meshx_create_relay_elements(dev_struct_t *pdev, uint16_t element_cnt)
Create Dynamic Relay Model Elements.
struct meshx_relay_element meshx_relay_element_t
Structure to manage relay element models.
Structure to manage relay element initialization.
Structure to manage relay element models.
meshx_onoff_server_model_t * onoff_srv_model
MESHX_MODEL relay_srv_model_list[RELAY_SRV_MODEL_SIG_CNT]
meshx_relay_srv_model_ctx_t * srv_ctx
Structure to hold the relay server save restore context.
meshx_on_off_srv_el_state_t state