#include <nrp_mqtt_proxy.h>
|
bool | _doBypassBroker = false |
| If true, msgs are published directly to subscriber callbacks, without going through the MQTT broker. Only for testing. More...
|
|
◆ NRPMQTTProxy() [1/3]
NRPMQTTProxy::NRPMQTTProxy |
( |
| ) |
|
|
delete |
◆ NRPMQTTProxy() [2/3]
◆ NRPMQTTProxy() [3/3]
◆ clearRetained()
void NRPMQTTProxy::clearRetained |
( |
| ) |
|
Clear all topics with retain messages by sending an empty msg.
◆ disconnect()
void NRPMQTTProxy::disconnect |
( |
| ) |
|
Disconnects client from MQTT Broker.
◆ getInstance()
◆ isConnected()
bool NRPMQTTProxy::isConnected |
( |
| ) |
|
Check connection status to broker.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ publish()
void NRPMQTTProxy::publish |
( |
const std::string & |
address, |
|
|
const std::string & |
msg, |
|
|
bool |
retained = false |
|
) |
| |
Publishes 'msg' to MQTT topic 'address'.
◆ resetInstance()
Reset singleton instance.
◆ subscribe()
void NRPMQTTProxy::subscribe |
( |
const std::string & |
address, |
|
|
const std::function< void(const std::string &)> & |
callback |
|
) |
| |
Subscribe to MQTT topic 'address' with callback function 'callback'.
◆ EventLoop_EVENT_LOOP_ENGINE_Test
friend class EventLoop_EVENT_LOOP_ENGINE_Test |
|
friend |
◆ _doBypassBroker
bool NRPMQTTProxy::_doBypassBroker = false |
|
protected |
If true, msgs are published directly to subscriber callbacks, without going through the MQTT broker. Only for testing.
The documentation for this class was generated from the following files: