Why: MQTT#

class MQTTPublisher#

Public Functions

MQTTError create(const std::string &topic, const std::string &host, int port = 1883)#
MQTTError publish(const std::string &msg)#
~MQTTPublisher()#
MQTTPublisher(const MQTTPublisher&) = delete#
MQTTPublisher &operator=(const MQTTPublisher&) = delete#
MQTTPublisher(MQTTPublisher &&other) noexcept#
MQTTPublisher &operator=(MQTTPublisher &&other) noexcept#
class MQTTError : public Why::Internal::Error#

Public Functions

inline MQTTError(const std::string &msg, int mosquitto_error)#
inline int error_number() const#
inline operator bool() const#