![]() |
template_pkg
1.0.0
A template ROS2 Package
|
#include <mqtt_client.hpp>


Classes | |
| struct | Params |
Public Types | |
| using | MqttMessageCallback = std::function<void(const std::vector<byte>&, const std::string& )> |
Public Member Functions | |
| MqttClient (const Params ¶ms) | |
| ~MqttClient () | |
| void | send (const std::vector< byte > &message) override |
| void | send (const std::string &topic, const std::vector< byte > &message) |
| void | spinOnce () override |
| void | addCallback (const MessageCallback &callback) override |
| void | addMqttCallback (const MqttMessageCallback &callback) |
| using roship_io::transport::MqttClient::MqttMessageCallback = std::function<void(const std::vector<byte>&, const std::string& )> |
| TRANSPORT_NS_HEAD MqttClient::MqttClient | ( | const Params & | params | ) |
| MqttClient::~MqttClient | ( | ) |
|
overridevirtual |
Implements roship_io::transport::TransportInterface.
| void MqttClient::addMqttCallback | ( | const MqttMessageCallback & | callback | ) |
| void MqttClient::send | ( | const std::string & | topic, |
| const std::vector< byte > & | message ) |
|
overridevirtual |
Implements roship_io::transport::TransportInterface.
|
overridevirtual |
Implements roship_io::transport::TransportInterface.