Commit 3f3ec099 authored by Johan Ström's avatar Johan Ström

mqtt: Fix username/password

parent 8209a4f8
......@@ -200,8 +200,11 @@ agotransport::MqttImpl::MqttImpl(const std::string &id, const std::string &broke
: mosquittopp(id.c_str())
, connected(false)
, shutdownSignaled(false)
, username(user_)
, password(password_)
, connection_uuid(utils::generateUuid())
, topic_replies_base(std::string(TOPIC_BASE) + connection_uuid + "/replies/"), reply_seq(0) {
, topic_replies_base(std::string(TOPIC_BASE) + connection_uuid + "/replies/")
, reply_seq(0) {
if (!mqtt_inited) {
mosqpp::lib_init();
mqtt_inited = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment