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_light_ctl_srv.h
Go to the documentation of this file.
1
12
13#ifndef __MESHX_LIGHT_CTL_SRV_H__
14#define __MESHX_LIGHT_CTL_SRV_H__
15
16#include "meshx_common.h"
17#include "meshx_light_server.h"
18#include "meshx_control_task.h"
20
21#if CONFIG_ENABLE_LIGHT_CTL_SERVER
22
30
38
56
70
86
97
110
127 meshx_ctx_t *ctx,
128 int16_t delta_uv,
129 uint16_t lightness,
130 uint16_t temperature);
131
150 meshx_ptr_t p_model,
151 uint16_t element_id,
152 uint16_t net_idx,
153 uint16_t app_idx,
154 uint16_t pub_addr,
156 meshx_lighting_server_cb_param_t *light_srv_send);
157
158#endif /* CONFIG_ENABLE_LIGHT_CTL_SERVER */
159#endif /*__MESHX_LIGHT_CTL_SRV_H__*/
Common BLE Mesh interface definitions and utility functions.
struct meshx_model meshx_model_t
struct meshx_ctx meshx_ctx_t
Structure to hold context information for BLE Mesh operations.
void * meshx_ptr_t
struct meshx_light_ctl_srv_state meshx_light_ctl_srv_state_t
struct meshx_lighting_server_cb_param meshx_lighting_server_cb_param_t
Common application definitions and includes for BLE Mesh Node.
struct meshx_model_interface meshx_model_interface_t
Header file for the control task in the BLE mesh node application.
meshx_err_t
MeshX Error Codes.
Definition meshx_err.h:39
meshx_err_t meshx_light_ctl_server_create(meshx_ctl_server_model_t **p_model, meshx_ptr_t p_sig_model)
Create and initialize a new CTL server model instance.
meshx_err_t meshx_get_ctl_setup_srv_model(meshx_ptr_t p_model)
Retrieves the CTL (Color Temperature Lightness) Setup Server model instance.
meshx_err_t meshx_light_ctl_srv_state_restore(meshx_ctl_server_model_t *p_model, meshx_light_ctl_srv_state_t ctl_state)
Restore the CTL state for the generic server model.
meshx_model_interface_t meshx_ctl_server_model_t
Structure representing the MeshX CTL (Color Temperature Lightness) server model.
meshx_err_t meshx_light_ctl_srv_status_send(meshx_model_t *p_model, meshx_ctx_t *ctx, int16_t delta_uv, uint16_t lightness, uint16_t temperature)
Send the Light CTL status message.
meshx_err_t meshx_light_ctl_srv_send_pack_create(meshx_ptr_t p_model, uint16_t element_id, uint16_t net_idx, uint16_t app_idx, uint16_t pub_addr, meshx_light_ctl_srv_state_t ctl_state, meshx_lighting_server_cb_param_t *light_srv_send)
Create a Light CTL Server send message packet.
meshx_err_t meshx_light_ctl_server_init(void)
Initialize the CTL server model.
meshx_model_interface_t meshx_ctl_setup_server_model_t
Structure representing the MeshX CTL (Color Temperature Lightness) Setup Server Model.
meshx_err_t meshx_light_ctl_server_delete(meshx_ctl_server_model_t **p_model)
Delete the CTL server model instance.
Header file for the production lighting server.