13#ifndef __MESHX_LIGHT_SERVER_H__
14#define __MESHX_LIGHT_SERVER_H__
19#if CONFIG_ENABLE_LIGHT_SERVER
struct meshx_model meshx_model_t
struct meshx_ctx meshx_ctx_t
Structure to hold context information for BLE Mesh operations.
Header file for the MeshX BLE Mesh Light Server module. This file defines the data structures,...
struct meshx_lighting_server_cb_param meshx_lighting_server_cb_param_t
Header file for the control task in the BLE mesh node application.
enum __packed control_task_msg_evt_to_ble control_task_msg_evt_to_ble_t
Enumeration for control task message events to BLE.
meshx_err_t(* control_task_msg_handle_t)(dev_struct_t *pdev, control_task_msg_evt_t evt, void *params)
Function pointer type for control task message handler.
meshx_err_t
MeshX Error Codes.
meshx_err_t meshx_lighting_srv_init(void)
Initialize the production lighting server.
meshx_err_t meshx_gen_light_srv_status_send(meshx_model_t *p_model, meshx_ctx_t *ctx, meshx_lighting_server_state_change_t *state_change)
Sends a status message for the Lighting Server model.
meshx_err_t meshx_lighting_srv_dereg_cb(uint32_t model_id, meshx_lighting_server_cb cb)
Callback function to deregister a lighting server model.
control_task_msg_handle_t meshx_lighting_server_cb
meshx_err_t meshx_lighting_reg_cb(uint32_t model_id, meshx_lighting_server_cb cb)
Register a callback function for the lighting server model.
meshx_err_t meshx_gen_light_srv_send_msg_to_ble(control_task_msg_evt_to_ble_t evt, const meshx_lighting_server_cb_param_t *params)
Sends a message to the BLE subsystem via the control task.
Lighting Server Model state change value union.