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 client model for BLE mesh nodes. This file contains functions for registering, deregistering, and initializing the generic client model. More...
#include "meshx_err.h"
#include "meshx_control_task.h"
#include "interface/ble_mesh/client/meshx_ble_mesh_gen_cli.h"
Go to the source code of this file.
Data Structures | |
struct | meshx_gen_client_send_params |
Generic 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_client_send_params | meshx_gen_client_send_params_t |
Generic 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_client_from_ble_reg_cb (uint32_t model_id, meshx_gen_client_cb_t cb) |
Registers a callback function for a specific generic server model. | |
meshx_err_t | meshx_gen_client_init (void) |
Initialize the meshxuction generic client. | |
meshx_err_t | meshx_gen_cli_send_msg (meshx_gen_client_send_params_t *params) |
Sends a Generic Client message over BLE Mesh. | |
Implementation of the MeshX generic client model for BLE mesh nodes. This file contains functions for registering, deregistering, and initializing the generic client model.
Copyright (c) 2024 - 2025 MeshX
The MeshX generic client model provides an interface for handling BLE mesh client operations, including callback registration and initialization.
Definition in file meshx_gen_client.h.
typedef struct meshx_gen_client_send_params meshx_gen_client_send_params_t |
Generic 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_cli_send_msg | ( | meshx_gen_client_send_params_t * | params | ) |
Sends a Generic Client message over BLE Mesh.
This function sends a message from a Generic Client model to a specified address within the BLE Mesh network, using the provided opcode and parameters.
[in] | params | Pointer to the structure containing the message parameters to set. |
Definition at line 426 of file meshx_gen_client.c.
meshx_err_t meshx_gen_client_from_ble_reg_cb | ( | uint32_t | model_id, |
meshx_gen_client_cb_t | cb ) |
Registers a callback function for a specific generic server model.
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 475 of file meshx_gen_client.c.
meshx_err_t meshx_gen_client_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.
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 404 of file meshx_gen_client.c.