BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Types | Public Member Functions
BeeeOn::MqttClient Class Referenceabstract
Inheritance diagram for BeeeOn::MqttClient:
BeeeOn::MosquittoClient BeeeOn::GatewayMosquittoClient

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
 

Member Function Documentation

virtual MqttMessage BeeeOn::MqttClient::receive ( const Poco::Timespan &  timeout)
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:

  • 0 - non-blocking
  • negative - blocking
  • positive blocking with timeout

Implemented in BeeeOn::MosquittoClient.


The documentation for this class was generated from the following files: