- Wed Jun 10, 2015 5:21 pm
#20094
**** UPDATE ****
I've had also some network issues, now I've resolved them but there are always some disconnections.
I've done some checks in MQTT broker log and with a new test:
1) ESP8266 transmits a PUBLISH every 5 minutes (300 seconds)
2) MQTT client uses a keepalive period set to 120 seconds and sends a PINGREQ to MQTT broker every 121 seconds (see log extract below)
I see that disconnections aren't random but systematic:
1) when the PUBLISH and PINGREQ are synchronous, MQTT client send only the PINGREQ message and no PUBLISH (see *** in log extract)
2) after 5 minutes from this "specific" event in MQTT broker log I see a new reconnection from ESP8266
Code: Select all09/06/2015 09.27.04 Received PUBLISH from myESP
09/06/2015 09.29.00 Received PINGREQ from myESP
09/06/2015 09.29.00 Sending PINGRESP to myESP
09/06/2015 09.31.01 Received PINGREQ from myESP
09/06/2015 09.31.01 Sending PINGRESP to myESP
09/06/2015 09.32.04 Received PUBLISH from myESP
09/06/2015 09.33.02 Received PINGREQ from myESP
09/06/2015 09.33.02 Sending PINGRESP to myESP
09/06/2015 09.35.03 Received PINGREQ from myESP
09/06/2015 09.35.03 Sending PINGRESP to myESP
09/06/2015 09.37.04 Received PINGREQ from myESP ***
09/06/2015 09.37.04 Sending PINGRESP to myESP
09/06/2015 09.39.05 Received PINGREQ from myESP
09/06/2015 09.39.05 Sending PINGRESP to myESP
09/06/2015 09.41.06 Received PINGREQ from myESP
09/06/2015 09.41.06 Sending PINGRESP to myESP
09/06/2015 09.42.21 Client myESP already connected, closing old connection.
09/06/2015 09.42.21 Client myESP disconnected.
09/06/2015 09.42.21 New client connected from 192.168.0.19 as myESP (c1, k120).
Do you think is a bottleneck ?