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_server.h
Go to the documentation of this file.
1
12
13#ifndef __MESHX_LIGHT_SERVER_H__
14#define __MESHX_LIGHT_SERVER_H__
15
16#include "meshx_control_task.h"
18
19#if CONFIG_ENABLE_LIGHT_SERVER
21
37
53
74
87 meshx_model_t *p_model,
88 meshx_ctx_t *ctx,
90
91#endif /* CONFIG_ENABLE_LIGHT_SERVER */
92#endif /* __MESHX_LIGHT_SERVER_H__ */
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.
Definition meshx_err.h:39
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.