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
ESP32DevelopmentBoardSecure example has LWMQTT_BUFFER_TOO_SHORT error #197
Comments
The first message you see is from someone that published a retained message in the "try" namespace on shiftr.io. Sure, not an ideal experience, but theres nothing we can do about it... 🤷♂️ |
Perhaps we can immediately publish a blank retained message (The topic can only have a single retained message) and that should prevent us from receiving the "bad" retained message that requires a large buffer. I think a simple I can do a PR if you think this is acceptable? |
Yes, let's do that. The |
Sure, no problem. |
…re subscription
Closing in favour of #199. |
The ESP32DevelopmentBoardSecure example sketch for the ESP32 fails to receive the first message after connect and sits in an endless re-connecting loop.
Inserting the
getLastError()
call before the re-connect shows an error of-1
(LWMQTT_BUFFER_TOO_SHORT
) - in order to get the example to run I have to initialise the client with a much larger buffer:MQTTClient client(1024);
If the buffer is smaller than this, the example doesn't work for me.
The first message I receive is always bonkers accordng to the serial output:
The text was updated successfully, but these errors were encountered: