Closed dogmatic69 closed 5 years ago
I have debugged the pubsub package and the code is run all the way to at least the below line, and the result is true as I added some code to debug that.
rc = _client->write(buf+(MQTT_MAX_HEADER_SIZE-hlen),length+hlen);
After more debugging last night it started "working" and every single message was sent to MQTT.
Tonight I recompiled the same code and nothing is getting sent again. There is something really strange going on.
Seems to be stable now. Not seen any issues after weeks and many restarts
After running for a while this is my logs, you can see many missed pakets. The Sparsnas is sending around every 15 seconds (seen in the serial debugger), but the MQTT subscriber is only getting a fraction of what is sent.
Look at the
seq
below, this is what MQTT is actually processing.Messages are sent much more frequently...