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 production lighting server. More...
Go to the source code of this file.
Typedefs | |
typedef control_task_msg_handle_t | meshx_lighting_server_cb |
Functions | |
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. | |
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_lighting_srv_dereg_cb (uint32_t model_id, meshx_lighting_server_cb cb) |
Callback function to deregister a lighting server model. | |
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. | |
Header file for the production lighting server.
Copyright © 2024 - 2025 MeshX
This file contains the declarations and definitions for the production lighting server, including callback registration and initialization functions.
Definition in file meshx_light_server.h.
Definition at line 20 of file meshx_light_server.h.
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.
This function publishes a message to the BLE layer with the specified event and parameters.
[in] | evt | The event to be sent to the BLE layer. |
[in] | params | Pointer to the parameters associated with the event. |
Definition at line 62 of file meshx_light_server.c.
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.
This function sends a status message for the Lighting Server model with the specified parameters.
[in] | p_model | Pointer to the Lighting Server model. |
[in] | ctx | Pointer to the context of the received messages. |
[in] | state_change | Pointer to the state change data for the Lighting Server. |
Definition at line 143 of file meshx_light_server.c.
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.
This function registers a callback function that will be called when certain events occur in the lighting server model.
[in] | model_id | The ID of the lighting server model. |
[in] | cb | The callback function to register. |
Definition at line 108 of file meshx_light_server.c.
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.
This function is called to deregister a lighting server model identified by the given model ID.
[in] | model_id | The ID of the model to be deregistered. |
[in] | cb | The callback function to be deregistered. |
Definition at line 90 of file meshx_light_server.c.
meshx_err_t meshx_lighting_srv_init | ( | void | ) |
Initialize the production lighting server.
Initialize the production lighting server.
This function sets up the necessary configurations and initializes the meshxuction lighting server for the BLE mesh node.
Definition at line 123 of file meshx_light_server.c.