How to set MQTT options in the Plugin

So, basically i got everything working fine with the Plugin, but i found that my Broker seem´s to struggle with random ClientID´s. Now i would like to set the ClientId in the Setting´s but i can´t figure out how to use the [options].

That´s my connection String using only the Url:

mqtt.connect("mqtt://Username:Password@10.10.18.210:1883");

But i want to do it like this

Thanks in advance
CrunkFX

You pass options to the connect method like this:

mqtt.connect("mqtt://Username:Password@10.10.18.210:1883", { clientId: "Your Client ID"});
1 Like

Thank´s that work´s perfectly.