autorope / donkeycar

Open source hardware and software platform to build a small scale self driving car.
http://www.donkeycar.com
MIT License
3.13k stars 1.29k forks source link

Update telemetry to support username/password authentication #1139

Open Ezward opened 1 year ago

Ezward commented 1 year ago

currently there is no way to authenticate with the MQTT broker. So if someone has a broker that requires authentication then they are out of luck.

We have not handled that in the telemetry part; https://github.com/autorope/donkeycar/blob/9f91ad1aaff054522b24c2c1e727d1a111e266f4/donkeycar/parts/telemetry.py#L44. We need to update the part to take in the username and password from configuration and call username_pw_set() just before calling connect(). See username_pw_set() in https://pypi.org/project/paho-mqtt/#option-functions.