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.
|
Implementation of the MeshX generic light client model for BLE mesh nodes. This file contains functions for registering, deregistering, and initializing the generic light client model. More...
#include "meshx_err.h"
#include "meshx_control_task.h"
#include "interface/ble_mesh/client/meshx_ble_mesh_light_cli.h"
Go to the source code of this file.
Data Structures | |
struct | meshx_gen_light_client_send_params |
Generic Light Client Model send parameters. This structure is used to pass parameters to the Generic Client Model for sending messages. It includes the element ID, model pointer, state parameters, opcode, destination address, network index, and application index. More... | |
Typedefs | |
typedef struct meshx_gen_light_client_send_params | meshx_gen_light_client_send_params_t |
Generic Light Client Model send parameters. This structure is used to pass parameters to the Generic Client Model for sending messages. It includes the element ID, model pointer, state parameters, opcode, destination address, network index, and application index. | |
Functions | |
meshx_err_t | meshx_gen_light_cli_init (void) |
Initialize the meshxuction generic client. | |
meshx_err_t | meshx_gen_light_client_from_ble_reg_cb (uint16_t model_id, meshx_gen_light_client_cb_t cb) |
Registers a callback function for getting Generic Light Client messages from BLE. | |
meshx_err_t | meshx_gen_light_send_msg (const meshx_gen_light_client_send_params_t *params) |
Send a message using the generic client model. | |
Implementation of the MeshX generic light client model for BLE mesh nodes. This file contains functions for registering, deregistering, and initializing the generic light client model.
Copyright (c) 2024 - 2025 MeshX
The MeshX generic light client model provides an interface for handling BLE mesh light client operations, including callback registration and initialization.
Definition in file meshx_gen_light_cli.h.
Generic Light Client Model send parameters. This structure is used to pass parameters to the Generic Client Model for sending messages. It includes the element ID, model pointer, state parameters, opcode, destination address, network index, and application index.
meshx_err_t meshx_gen_light_cli_init | ( | void | ) |
Initialize the meshxuction generic client.
This function sets up the necessary configurations and initializes the meshxuction generic client for the BLE mesh node.
Definition at line 397 of file meshx_gen_light_cli.c.
meshx_err_t meshx_gen_light_client_from_ble_reg_cb | ( | uint16_t | model_id, |
meshx_gen_light_client_cb_t | cb ) |
Registers a callback function for getting Generic Light Client messages from BLE.
This function associates a callback with the given model ID, allowing the server to handle events or messages related to that model.
[in] | model_id | The unique identifier of the generic server model. |
[in] | cb | The callback function to be registered for the model. |
Definition at line 472 of file meshx_gen_light_cli.c.
meshx_err_t meshx_gen_light_send_msg | ( | const meshx_gen_light_client_send_params_t * | params | ) |
Send a message using the generic client model.
This function sends a message using the generic client model, allowing interaction with the BLE mesh network.
[in] | params | Pointer to the message parameters. |
Definition at line 423 of file meshx_gen_light_cli.c.