-
Notifications
You must be signed in to change notification settings - Fork 308
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash on MQTT Subscription with H801 #517
Comments
You can try this one: https://github.com/luebbe/homie-h801. |
@luebbe: Thank you for sharing. Your project helped me a lot for my first RGB controller implementation. |
@Zero545 you're welcome :) |
Could this issue be closed? Please confirm. |
No, it seems the code I mentioned is still the same and probably the problem is also not fixed. But I did not test it again. |
PR is merged. |
Closing, since the PR is merged |
Hi,
I'm just starting to set up an LED strip controller with the H801. I really wanted to use the Homie framework since it seemed quite well developed.
Unfortunatly I had some issues with the minimum example. Which I also have found a solution for (I hope it's valid).
I got the example to start on my H801 in the following way, but it kept crashing:
I narrowed down the the issue to a single line in BootNormal.cpp (in
void BootNormal::_advertise()):
packetId = Interface::get().getMqttClient().subscribe(_prefixMqttTopic(PSTR("/$implementation/ota/firmware/+")), 1);
Here is the log of the crash:
After changing the line:
size_t longestSubtopicLength = 29 + 1; // /$implementation/ota/firmware
to:
size_t longestSubtopicLength = 31 + 1; // /$implementation/ota/firmware/+
everything seems to work fine. Can someone please confirm that this makes sense?
The text was updated successfully, but these errors were encountered: