Closed bertmelis closed 7 years ago
It seems like to logic behind the ping and keepalive is buggy. No matter hwat keepalive i set, the ping is always send after 6-8 seconds.
I believe the expected behaviour is to send a PINGREQ after keepalive * 1000 * 0.7.
PINGREQ
keepalive * 1000 * 0.7
So if I'd set the keepalive to 120 seconds. I would only expect to see a pingreq/pingresp after 84 seconds.
I'm using the homie-esp8266 code for testing. But I also hardcoded the keepalive value in the mqtt-code as 120 also without result.
Nevermind. I found out the keepalive value was hardcoded in homie-esp8266.
It seems like to logic behind the ping and keepalive is buggy. No matter hwat keepalive i set, the ping is always send after 6-8 seconds.
I believe the expected behaviour is to send a
PINGREQ
afterkeepalive * 1000 * 0.7
.So if I'd set the keepalive to 120 seconds. I would only expect to see a pingreq/pingresp after 84 seconds.
I'm using the homie-esp8266 code for testing. But I also hardcoded the keepalive value in the mqtt-code as 120 also without result.