|
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) |
|
|
void | setupLogger (Poco::Logger *logger=0) const |
|
Poco::Logger & | logger () const |
|
| Loggable (const ClassInfo &info) |
|
| Loggable (const std::type_info &info) |
|
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) |
|
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::IOException | when a serious issue caused the Exporter to deny its service. |
Implements BeeeOn::Exporter.
The documentation for this class was generated from the following files:
- /var/lib/jenkins/workspace/beeeon-gateway-master/src/exporters/MqttExporter.h
- /var/lib/jenkins/workspace/beeeon-gateway-master/src/exporters/MqttExporter.cpp