OpenGarage / OpenGarage-Firmware

OpenGarage: open-source WiFi-enabled garage door opener
https://opengarage.io
GNU General Public License v3.0
280 stars 102 forks source link

64 Byte MQTT usernames needed #70

Closed sumoneelse closed 2 years ago

sumoneelse commented 2 years ago

I am using an MQTT broker called flespi. Authentication is handled using a 64 byte user name. Example:

2bypoemSP5tE9gf0O4jRu7nMQZMlVsSNtg3FjdnY8Fq6JvWnn35H0ghG4TPPbxrs

More info: https://flespi.com/kb/tokens-access-keys-to-flespi-platform

I am unable to use this username as it is longer than the field in the OpenGarage UI will allow me to paste.

Can the username field accommodate a username long enough to handle these strings?

rayshobby commented 2 years ago

well, that's a bizarrely long user name, but sure, this will be addressed in firmware 1.2.0. It's just a matter of changing the maxlength of mqtt user name to 64. You can actually make the change yourself and compile the firmware.