|
| meshx_err_t | model_send (meshx_gen_property_send_params_t *params) override |
| | Send a packet to the MeshX stack based on the given parameters.
|
| meshx_err_t | model_from_ble_cb (dev_struct_t *, control_task_msg_evt_t, meshx_ptr_t) override |
| | Callback function for handling BLE mesh events for Generic Client Property Server Model.
|
| meshx_err_t | prepare_element_msg (meshx_ptr_t *msg_ptr, size_t *msg_size) override |
| | Prepare message for element notification.
|
| | meshXGenericClientPropertyServerModel (meshXElementIF *parent_element=nullptr, meshx_ptr_t parent_element_state=nullptr, uint16_t model_func_id=0) |
| | Constructor for Generic Client Property Server Model.
|
| | ~meshXGenericClientPropertyServerModel ()=default |
| | meshXServerModel (MESHX_MODEL *p_plat_model, uint32_t model_id, meshXElementIF *parent_element=nullptr, meshx_ptr_t parent_element_state=nullptr, uint16_t model_func_id=0) |
| | Construct a new Server Model.
|
| void | set_plat_model (MESHX_MODEL *p_model) override |
| | Set the platform-specific model instance.
|
| meshx_err_t | model_handle_from_ble_cb (dev_struct_t *p_dev, evt_model_id_t evt_model_id, meshx_ptr_t params) |
| | Handle upstream BLE Mesh events.
|
| void | on_baked (void) override |
| | Called when the model's parent element is baked.
|
| virtual | ~meshXModel () |
| | Destructor for meshXModel.
|
| meshx_err_t | send_to_parent_element (meshx_ptr_t msg_ptr, size_t msg_size) |
| | Send message to parent element.
|
| uint16_t | get_model_func_id (void) const |
| | Get the model function identifier.
|
| void | set_model_func_id (uint16_t func_id) |
| | Set the model function identifier.
|
| uint16_t | get_model_id (void) const override |
| | Get the model identifier.
|
| bool | is_initialized (void) const override |
| | Check if the model is successfully initialized.
|
| void | set_model_id (uint16_t id) |
| | Set the model identifier.
|
| meshx_err_t | get_init_status (void) const |
| | Get the model initialization status.
|
| meshXBaseGenericServerModel * | get_base_model (void) const |
| | Get the base model instance.
|
| | meshXModel (MESHX_MODEL *p_plat_model, uint32_t model_id, meshXElementIF *parent_element=nullptr, uint16_t model_func_id=0) |
| | Constructs a new meshXModel instance.
|
| | meshXModelIF () |
| | meshXModelIF (MESHX_MODEL *p_plat_model) |
| virtual | ~meshXModelIF ()=default |
| virtual meshx_err_t | element_state_change_handle (void)=0 |
| | Handle state change request from element.
|
| MESHX_MODEL * | get_plat_model (void) const |
| | Get the platform-specific model instance.
|
| meshx_ptr_t | get_pub_struct (void) const |
| | Get the publication structures.
|
| meshx_ptr_t | get_gen_struct (void) const |
| | Get the generic structures.
|
| void | set_pub_struct (meshx_ptr_t pub) |
| | Set the publication structures.
|
| void | set_gen_struct (meshx_ptr_t gen) |
| | Set the generic structures.
|
| void | set_parent_element (meshXElementIF *parent) |
| | Set the parent element for this model.
|
| meshXElementIF * | get_parent_element (void) const |
| | Get the parent element of this model.
|
| void | set_parent_element_state (meshx_ptr_t state) |
| | Set the parent element state pointer.
|
| meshx_ptr_t | get_parent_element_state (void) const |
| | Get the parent element state pointer.
|
A template class for creating Generic Client Property Server models.
This class is derived from meshXServerModel and provides a convenient interface for creating Generic Client Property Server models. It handles the Generic Client Property state change notifications from the MeshX stack and publishes the state change event to the element layer.