|
Bluenet
5.7.0
Bluenet, firmware for nRF52 smart home devices
|
Class that selects which model to use to send a message. More...
#include <cs_MeshModelSelector.h>

Public Member Functions | |
| void | init (MeshModelMulticast &multicastModel, MeshModelMulticastAcked &multicastAckedModel, MeshModelMulticastNeighbours &multicastNeighboursModel, MeshModelUnicast &unicastModel) |
| Init with pointer to all models. More... | |
| cs_ret_code_t | addToQueue (MeshUtil::cs_mesh_queue_item_t &item) |
| Add item to the send queue of a suitable model. More... | |
| cs_ret_code_t | remFromQueue (MeshUtil::cs_mesh_queue_item_t &item) |
| Remove an item from the send queue. More... | |
Private Attributes | |
| MeshModelMulticast * | _multicastModel = nullptr |
| MeshModelMulticastAcked * | _multicastAckedModel = nullptr |
| MeshModelMulticastNeighbours * | _multicastNeighboursModel = nullptr |
| MeshModelUnicast * | _unicastModel = nullptr |
Class that selects which model to use to send a message.
| cs_ret_code_t MeshModelSelector::addToQueue | ( | MeshUtil::cs_mesh_queue_item_t & | item | ) |
Add item to the send queue of a suitable model.
| void MeshModelSelector::init | ( | MeshModelMulticast & | multicastModel, |
| MeshModelMulticastAcked & | multicastAckedModel, | ||
| MeshModelMulticastNeighbours & | multicastNeighboursModel, | ||
| MeshModelUnicast & | unicastModel | ||
| ) |
Init with pointer to all models.
Could maybe be implemented neater if we have a base class for models.
| cs_ret_code_t MeshModelSelector::remFromQueue | ( | MeshUtil::cs_mesh_queue_item_t & | item | ) |
Remove an item from the send queue.
|
private |
|
private |
|
private |
|
private |