|
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.
|
#include <meshx_base_model_sensor.hpp>
Public Member Functions | |
| meshx_err_t | plat_model_init (void) override |
| Initialization function for the Sensor Server model. | |
| meshx_err_t | validate_server_status_opcode (uint16_t opcode) override |
| Validate a sensor server status opcode. | |
| meshx_err_t | server_state_restore (meshx_sensor_server_restore_params_t *param) override |
| Restores the state of the Sensor Server model. | |
| meshx_err_t | plat_send_msg (meshx_sensor_server_send_params_t *params) override |
| Sends a status message for the Sensor Server model. | |
| meshXBaseSensorServerModel (uint32_t model_id, meshx_ptr_t p_plat_model, const control_msg_cb &from_ble_cb) | |
| meshXBaseSensorServerModel ()=delete | |
| ~meshXBaseSensorServerModel () override=default | |
| Public Member Functions inherited from meshXBaseServerModel< meshXBaseSensorServerModel, meshx_sensor_server_send_params_t, meshx_sensor_server_restore_params_t, meshx_sensor_server_cb_param_t > | |
| meshXBaseServerModel ()=delete | |
| virtual | ~meshXBaseServerModel ()=default |
| meshx_err_t | from_ble_dereg_cb (void) const override |
| Deregister BLE message callback for this model. | |
| void | set_plat_model_ptr (meshx_ptr_t p_model) |
| Set the platform model pointer and update the registration list. | |
| Public Member Functions inherited from meshXBaseModel< meshx_sensor_server_send_params_t > | |
| meshx_err_t | from_ble_reg_cb (void) const |
| Register BLE message callback for this model. | |
| meshx_err_t | get_status (void) const |
| Get the current status of the model. | |
| uint32_t | get_model_id (void) const |
| Get the model identifier. | |
| control_task_msg_handle_t | get_from_ble_cb (void) const |
| Get the BLE message callback function. | |
| meshXBaseModelType_t | get_model_type (void) const |
| Get the model type (server/client). | |
| void | set_status (meshx_err_t err) |
| Set the model status. | |
| void | set_model_id (uint32_t id) |
| Set the model identifier. | |
| void | set_from_ble_cb (control_task_msg_handle_t cb) |
| Set the BLE message callback function. | |
| void | set_model_type (meshXBaseModelType_t type) |
| Set the model type. | |
| meshXBaseModel (uint32_t model_id, control_task_msg_handle_t from_ble_cb, meshXBaseModelType_t model_type) | |
| Construct a new meshXBaseModel object. | |
| virtual | ~meshXBaseModel () |
| Virtual destructor for meshXBaseModel. | |
| meshXBaseSensorServerModel::meshXBaseSensorServerModel | ( | uint32_t | model_id, |
| meshx_ptr_t | p_plat_model, | ||
| const control_msg_cb & | from_ble_cb ) |
|
delete |
|
overridedefault |
|
overridevirtual |
Initialization function for the Sensor Server model.
Implements meshXBaseModel< meshx_sensor_server_send_params_t >.
|
overridevirtual |
Sends a status message for the Sensor Server model.
Implements meshXBaseModel< meshx_sensor_server_send_params_t >.
|
overridevirtual |
Restores the state of the Sensor Server model.
|
overridevirtual |
Validate a sensor server status opcode.