aderusha / HASwitchPlate

LCD touchscreen for Home Automation
MIT License
727 stars 128 forks source link

The MQTT user/password fields require a user/pass 32 char or less in length. #118

Closed kquinsland closed 3 years ago

kquinsland commented 3 years ago

The password for my testing MQTT server is 82 characters long. I recognize that this is probably @ the higher end of what most users will have, but I wanted to open the issue to document the problem/behavior for the benefit of anybody in the future.

The HASP was connecting, but the error code was alternating between RC=5 and RC=6. After a bit of debugging, I discovered that the configured password is being (silently!) truncated prior to save/configure.

I've made a small PR that should address this: https://github.com/aderusha/HASwitchPlate/pull/117

kquinsland commented 3 years ago

Resolved via https://github.com/aderusha/HASwitchPlate/commit/670342c7c700d5b534ae50fbf0111ee0f6d36fa1