Closed soebbing closed 1 year ago
Some digging revealed this definition:
https://github.com/lumapu/ahoy/blob/f8fe044e1be86e8f2730807fb0da79d97e880feb/src/defines.h#L92
That looks like a 64 char password, plus zero byte \0
should still be valid - is there any other possible reason I'm not seeing?
can you check another MQTT broker? Your code snippet is correct, it's allowed to have 64 chars of password + one extra char for string end.
Maybe it is possible to have a manual compile on your side and add some debug prints like Serial.println(...);
with the password. So you're able to check whether the password is correctly stored.
Thank you for your feedback. I don't have any other broker running, unfortunately. I used OpenDTU successfully before, if that is of any informational value.
I'll try to add a few debug statements, that is a great idea! I'll get back if I have any more information!
Edit: typo
Ok, when I tried to log some stuff I realized: MQTT was connecting and worked! I have no idea what was going on before or what I might have changed.
Anyway, sorry for the unnecessary issue here, closing it!
Hardware
Modelname: __ Retailer URL: __
nRF24L01+ Module
Antenna:
Power Stabilization:
Connection diagram:
Connection diagram I used:
Note: [*] GND Pin 1 has a square mark on the nRF24L01+ module
Software
Version / Git SHA:
Version: 0.5.92 Github Hash: ___
Build & Flash Method:
Desktop OS:
Debugging:
I can receive and display values just fine with Ahoy, but the MQTT integration (to Homeassistant) doesn't seem to be able to connect (logs below). I double and triple checked username/password and the server configuration, but the problem remains.
My only guess at the moment is, that there is some sort of internal limit to the allowed length of a password? My password is quite long (64 chars), looking at the header files I couldn't find anything obvious to that regard.
I'd try and define some shorter password, but I still try to get around the hassle to reconfigure all the connected devices. 😓
In any case, thank you for your awesome work and the great project!