|
SPSP
Simple publish-subscribe protocol. Connects low power IoT clients to MQTT.
|
Go to the documentation of this file.
15 namespace SPSP::FarLayers::MQTT
21 class Adapter :
public IAdapter
32 virtual bool publish(
const std::string& topic,
const std::string& payload)
Interface for platform-dependent MQTT adapter.
virtual bool unsubscribe(const std::string &topic)
Unsubscribes from given topic.
virtual bool subscribe(const std::string &topic)
Subscribes to given topic.
virtual bool publish(const std::string &topic, const std::string &payload)
Publishes message coming from node.
virtual void setSubDataCb(AdapterSubDataCb cb)
Sets callback for incoming subscription data.
virtual void setConnectedCb(AdapterConnectedCb cb)
Sets connected callback.