MeshX 0.4
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_ble_mesh_sensor_srv.h File Reference

Header file for the MeshX BLE Mesh Sensor Server module. More...

Go to the source code of this file.

Data Structures

struct  meshx_sensor_srv_status_t
struct  meshx_sensor_server_state_change_t
struct  meshx_sensor_server_cb_param_t
 Sensor Server Model callback parameters. More...

Macros

#define MESHX_BLE_MESH_SENSOR_DATA_MAX_LEN   128

Functions

meshx_err_t meshx_plat_sensor_srv_init (void)
 Initialize Sensor Server module.
meshx_err_t meshx_plat_sensor_srv_create (meshx_ptr_t p_model, meshx_ptr_t *p_pub, meshx_ptr_t *p_sensor_srv)
 Create a Sensor Server instance.
meshx_err_t meshx_plat_sensor_srv_delete (meshx_ptr_t *p_pub)
 Delete a Sensor Server instance.
meshx_err_t meshx_plat_sensor_srv_send_status (const meshx_model_t *p_model, const meshx_ctx_t *p_ctx, const meshx_sensor_server_state_change_t *state_change)
 Send a status message from the Sensor Server.

Detailed Description

Header file for the MeshX BLE Mesh Sensor Server module.

Copyright (c) 2024 - 2025 MeshX

Note
This is the public interface for the Sensor Server module.
Author
Pranjal Chanda
Date
2026

Macro Definition Documentation

◆ MESHX_BLE_MESH_SENSOR_DATA_MAX_LEN

#define MESHX_BLE_MESH_SENSOR_DATA_MAX_LEN   128

Function Documentation

◆ meshx_plat_sensor_srv_create()

meshx_err_t meshx_plat_sensor_srv_create ( meshx_ptr_t p_model,
meshx_ptr_t * p_pub,
meshx_ptr_t * p_sensor_srv )

Create a Sensor Server instance.

◆ meshx_plat_sensor_srv_delete()

meshx_err_t meshx_plat_sensor_srv_delete ( meshx_ptr_t * p_pub)

Delete a Sensor Server instance.

◆ meshx_plat_sensor_srv_init()

meshx_err_t meshx_plat_sensor_srv_init ( void )

Initialize Sensor Server module.

◆ meshx_plat_sensor_srv_send_status()

meshx_err_t meshx_plat_sensor_srv_send_status ( const meshx_model_t * p_model,
const meshx_ctx_t * p_ctx,
const meshx_sensor_server_state_change_t * state_change )

Send a status message from the Sensor Server.