bluetooth-temperature-sensors icon indicating copy to clipboard operation
bluetooth-temperature-sensors copied to clipboard

Add options for MQTT username/password

Open geoffbon opened this issue 3 years ago • 1 comments

This looks like a great solution, and it's really close to working for me, except that my MQTT server is set up with user/password authentication.

It looks like the paho library supports this via MQTTClient_createWithOptions(), but I'm not quite c-savvy enough to create the right pull request. Any chance you can add this? Perhaps adding a couple of optional parameters on the server address line to prevent breaking existing instances, i.e. allow both these to work:

tcp://172.148.5.11:1883
tcp://172.148.5.11:1883,jack,secretpassword

Otherwise I'll need to reconfigure stuff to allow non-authenticated connections, which I'd rather not do.

geoffbon avatar Mar 11 '21 17:03 geoffbon

+1 for username/password if at all possible and "spare time" allows.

Many thanks for this program too @deepcoder

tconnz avatar Mar 26 '21 00:03 tconnz