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_cwww_server_element.h
Go to the documentation of this file.
1
12
13#ifndef __CWWW_SERVER_ELEMENT_H__
14#define __CWWW_SERVER_ELEMENT_H__
15
16#include <string.h>
17#include <meshx_common.h>
18#include <meshx_onoff_server.h>
19#include <meshx_light_ctl_srv.h>
20
21#if CONFIG_LIGHT_CWWW_SRV_COUNT > 0
22
23#define CWWW_SRV_MODEL_SIG_CNT CWWW_SIG_ID_MAX // No of SIG models in a cwww model element
24#define CWWW_SRV_MODEL_VEN_CNT 0 // No of VEN models in a cwww model element
25
35
39typedef struct cwww_srv_ctx
40{
41 uint8_t tid;
42 uint16_t app_id;
43 uint16_t pub_addr;
44 meshx_on_off_srv_el_state_t state;
45 meshx_on_off_srv_el_state_t prev_state;
49
60
74
85meshx_err_t meshx_create_cwww_elements(dev_struct_t *pdev, uint16_t element_cnt);
86
87#endif /* CONFIG_LIGHT_CWWW_SRV_COUNT > 0 */
88#endif /*__CWWW_SERVER_ELEMENT_H__*/
struct meshx_light_ctl_srv_state meshx_light_ctl_srv_state_t
Common application definitions and includes for BLE Mesh Node.
struct dev_struct dev_struct_t
Structure representing the device composition and elements.
struct meshx_cwww_elements_ctrl meshx_cwww_elements_ctrl_t
Structure representing a CW-WW element in the BLE mesh network.
#define CWWW_SRV_MODEL_SIG_CNT
cwww_sig_id_t
Enumeration of CW-WW SIG model IDs.
@ CWWW_SIG_ONOFF_MODEL_ID
@ CWWW_SIG_L_CTL_MODEL_ID
meshx_err_t meshx_create_cwww_elements(dev_struct_t *pdev, uint16_t element_cnt)
Create Dynamic CWWW Server Model Elements.
struct cwww_srv_ctx meshx_cwww_server_ctx_t
Structure to hold the context of the cwww client.
struct meshx_cwww_element meshx_cwww_element_t
Structure to manage CWWW element initialization.
meshx_err_t
MeshX Error Codes.
Definition meshx_err.h:39
Header file for the Light CTL Server module.
meshx_model_interface_t meshx_ctl_server_model_t
Structure representing the MeshX CTL (Color Temperature Lightness) server model.
Header file for the On/Off Server model in the BLE Mesh Node application.
#define MESHX_MODEL
Structure to hold the context of the cwww client.
meshx_light_ctl_srv_state_t prev_ctl_state
meshx_light_ctl_srv_state_t ctl_state
meshx_on_off_srv_el_state_t prev_state
meshx_on_off_srv_el_state_t state
Structure to manage CWWW element initialization.
MESHX_MODEL cwww_srv_model_list[CWWW_SRV_MODEL_SIG_CNT]
meshx_cwww_server_ctx_t * srv_ctx
meshx_ctl_server_model_t * ctl_srv_model
meshx_onoff_server_model_t * onoff_srv_model
Structure representing a CW-WW element in the BLE mesh network.