flightonary/Moscapsule

Username/Password

MarkusPfundstein opened this issue · 1 comments

Hello,

Is there any possibility to use this library with username password login?

Thanks,
Markus

let mqttConfig = MQTTConfig(clientId: "cid", host: "test.mosquitto.org", port: 1883, keepAlive: 60)
mqttConfig.mqttAuthOpts = MQTTAuthOpts(username: "uname", password: "passwd")
let mqttClient = MQTT.newConnection(mqttConfig)