Bluenet  5.7.0
Bluenet, firmware for nRF52 smart home devices
Loading...
Searching...
No Matches
MeshMsgSender Class Reference

Class that: More...

#include <cs_MeshMsgSender.h>

Inheritance diagram for MeshMsgSender:
Collaboration diagram for MeshMsgSender:

Public Member Functions

void init (MeshModelSelector *selector)
 
cs_ret_code_t sendMsg (cs_mesh_msg_t *meshMsg)
 
cs_ret_code_t sendTestMsg ()
 
cs_ret_code_t sendNoop (uint8_t transmissions=0)
 
cs_ret_code_t sendMultiSwitchItem (const internal_multi_switch_item_t *item, const cmd_source_with_counter_t &source, uint8_t transmissions=0)
 
cs_ret_code_t sendSetTime (const cs_mesh_model_msg_time_t *item, uint8_t transmissions=0)
 
cs_ret_code_t sendBehaviourSettings (const behaviour_settings_t *item, uint8_t transmissions=0)
 
cs_ret_code_t sendProfileLocation (const cs_mesh_model_msg_profile_location_t *item, uint8_t transmissions=0)
 
cs_ret_code_t sendTrackedDeviceRegister (const cs_mesh_model_msg_device_register_t *item, uint8_t transmissions=0)
 
cs_ret_code_t sendTrackedDeviceToken (const cs_mesh_model_msg_device_token_t *item, uint8_t transmissions=0)
 
cs_ret_code_t sendTrackedDeviceHeartbeat (const cs_mesh_model_msg_device_heartbeat_t *item, uint8_t transmissions=0)
 
cs_ret_code_t sendTrackedDeviceListSize (const cs_mesh_model_msg_device_list_size_t *item, uint8_t transmissions=0)
 
void handleEvent (event_t &event)
 Internal usage. More...
 
- Public Member Functions inherited from EventListener
 EventListener ()
 
virtual ~EventListener ()
 unregisters the listener. More...
 
virtual void handleEvent (event_t &event)=0
 Handle events. More...
 
void listen ()
 Registers this with the EventDispatcher. More...
 

Private Member Functions

cs_ret_code_t handleSendMeshCommand (mesh_control_command_packet_t *command, const cmd_source_with_counter_t &source)
 
cs_ret_code_t addToQueue (MeshUtil::cs_mesh_queue_item_t &item)
 
cs_ret_code_t remFromQueue (MeshUtil::cs_mesh_queue_item_t &item)
 

Private Attributes

MeshModelSelector_selector
 

Detailed Description

Class that:

  • Sends messages to the mesh.

Member Function Documentation

◆ addToQueue()

cs_ret_code_t MeshMsgSender::addToQueue ( MeshUtil::cs_mesh_queue_item_t item)
private

◆ handleEvent()

void MeshMsgSender::handleEvent ( event_t event)
virtual

Internal usage.

Implements EventListener.

◆ handleSendMeshCommand()

cs_ret_code_t MeshMsgSender::handleSendMeshCommand ( mesh_control_command_packet_t command,
const cmd_source_with_counter_t source 
)
private

◆ init()

void MeshMsgSender::init ( MeshModelSelector selector)

◆ remFromQueue()

cs_ret_code_t MeshMsgSender::remFromQueue ( MeshUtil::cs_mesh_queue_item_t item)
private

◆ sendBehaviourSettings()

cs_ret_code_t MeshMsgSender::sendBehaviourSettings ( const behaviour_settings_t item,
uint8_t  transmissions = 0 
)

◆ sendMsg()

cs_ret_code_t MeshMsgSender::sendMsg ( cs_mesh_msg_t meshMsg)

◆ sendMultiSwitchItem()

cs_ret_code_t MeshMsgSender::sendMultiSwitchItem ( const internal_multi_switch_item_t item,
const cmd_source_with_counter_t source,
uint8_t  transmissions = 0 
)

◆ sendNoop()

cs_ret_code_t MeshMsgSender::sendNoop ( uint8_t  transmissions = 0)

◆ sendProfileLocation()

cs_ret_code_t MeshMsgSender::sendProfileLocation ( const cs_mesh_model_msg_profile_location_t item,
uint8_t  transmissions = 0 
)

◆ sendSetTime()

cs_ret_code_t MeshMsgSender::sendSetTime ( const cs_mesh_model_msg_time_t item,
uint8_t  transmissions = 0 
)

◆ sendTestMsg()

cs_ret_code_t MeshMsgSender::sendTestMsg ( )

◆ sendTrackedDeviceHeartbeat()

cs_ret_code_t MeshMsgSender::sendTrackedDeviceHeartbeat ( const cs_mesh_model_msg_device_heartbeat_t item,
uint8_t  transmissions = 0 
)

◆ sendTrackedDeviceListSize()

cs_ret_code_t MeshMsgSender::sendTrackedDeviceListSize ( const cs_mesh_model_msg_device_list_size_t item,
uint8_t  transmissions = 0 
)

◆ sendTrackedDeviceRegister()

cs_ret_code_t MeshMsgSender::sendTrackedDeviceRegister ( const cs_mesh_model_msg_device_register_t item,
uint8_t  transmissions = 0 
)

◆ sendTrackedDeviceToken()

cs_ret_code_t MeshMsgSender::sendTrackedDeviceToken ( const cs_mesh_model_msg_device_token_t item,
uint8_t  transmissions = 0 
)

Member Data Documentation

◆ _selector

MeshModelSelector* MeshMsgSender::_selector
private

The documentation for this class was generated from the following file: