BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
Public Member Functions
BeeeOn::MqttExporter Class Reference
Inheritance diagram for BeeeOn::MqttExporter:
BeeeOn::Exporter BeeeOn::Loggable

Public Member Functions

bool ship (const SensorData &data) override
 
void setTopic (const std::string &topic)
 
void setQos (int qos)
 
void setMqttClient (MqttClient::Ptr client)
 
void setFormatter (const Poco::SharedPtr< SensorDataFormatter > formatter)
 

Additional Inherited Members

- Protected Member Functions inherited from BeeeOn::Loggable
void setupLogger (Poco::Logger *logger=0) const
 
Poco::Logger & logger () const
 
 Loggable (const ClassInfo &info)
 
 Loggable (const std::type_info &info)
 
- Static Protected Member Functions inherited from BeeeOn::Loggable
static Poco::Logger & forMethod (const char *name)
 
static Poco::Logger & forClass (const ClassInfo &info)
 
static Poco::Logger & forClass (const std::type_info &info)
 
template<typename T >
static Poco::Logger & forInstance (const T *i)
 
static void configureSimple (Poco::Logger &logger, const std::string &level)
 
static void logException (Poco::Logger &logger, const Poco::Message::Priority priority, const Poco::Exception &e, const char *file, size_t line)
 

Member Function Documentation

bool MqttExporter::ship ( const SensorData data)
overridevirtual

Ensures export data in best effort to target destination

Returns
true when successfully shipped (this is kind of a guarantee that the caller doesn't have to care about the data anymore).
false when the Exporter cannot ship data temporarily (e.g. full output buffers).
Exceptions
Poco::IOExceptionwhen a serious issue caused the Exporter to deny its service.

Implements BeeeOn::Exporter.


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