BeeeOn Gateway
v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
|
Public Types | |
typedef Poco::SharedPtr < MqttClient > | Ptr |
Public Member Functions | |
virtual void | publish (const MqttMessage &msg)=0 |
Publish a message on the topic included in the message. | |
virtual MqttMessage | receive (const Poco::Timespan &timeout)=0 |
|
pure virtual |
Waiting for a new message according to given timeout. Returns message, if there is any. Otherwise it waits for a new message or timeout exception.
This method should not be called by multiple threads, received message could be given to only one thread.
Timeout:
Implemented in BeeeOn::MosquittoClient.