-
Notifications
You must be signed in to change notification settings - Fork 292
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
Issues with MQTT Failed to Subscribe using Mosquitto 1.4.7 #31
Comments
It worked for me. Thanks! |
This solved it for me too. Thanks |
hey can you try this with the fix of changing that line to this? kinda weird its not working. if it still doesnt work can you post the exact Yun code (minus authentication) so i can replicate?
|
There is an issue subscribing to MQTT topics using the Adafruit MQTT Library on the NodeMcu |
There is an issue subscribing to MQTT topics using the Adafruit MQTT Library across Bridge on the Arduino Yun.
I have isolated the line of troublesome code down to line 248 of Adafruit_MQTT.cpp, inside of Adafruit_MQTT::readFullPacket
if (multiplier > 128*128*128) { DEBUG_PRINT(F("Malformed packet len\n")); return 0; }
Activating the debug mode and adding an additional PRINT statement reveals that the value of multiplier is 128 when the code fails and returns, which doesnt seem to make a whole lot of sense, as this code should not run in that case.
Commenting this block out has resolved the issue.
The text was updated successfully, but these errors were encountered: