-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
client.publish fails #216
Comments
I have the same problem. Data is published successfully, but publish() returns false although state() returns MQTT_CONNECTED. Error occurrence is rather random. Here is my implementation where error occures. It seems, that in line 462 of PubSubClient.cpp, write returns different size than size of data prepared to transfer over client: When I print out value of
if I understood properly, _client is actually an instance of RF24Client if I use RF24, isn't it? |
I did a TCP dump from tun interface where my arduino is connected to and there is a correlation between failed publish() and TCP ACK for MQTT PING RESPONSE sent from broker:
10.10.3.30 is my arduino. TCP Zero Window means "give me a break" so for some reason arduino is overloaded. From wireshark wiki:
Any idea what can be the reason or how to debug it further? |
Hi,
I'm using publish() method from within an os_timer callback
Return value of the publish is false as if publish failed - however message does arrive to broker.
After few minutes of operation, system crashes...
What am I doing wrong?
Thanks
Gil
The text was updated successfully, but these errors were encountered: