ArduinoMqttClient icon indicating copy to clipboard operation
ArduinoMqttClient copied to clipboard

Ping & keep alive

Open Laxilef opened this issue 11 months ago • 0 comments

Hi,

I have a question about the correctness of ping. Should we wait until keep alive expires? Most likely the server will disconnect the client and we will not be able to ping(). Maybe the condition should be something like (now - _lastPingTx) >= (_keepAliveInterval * 0.9f)?

I ask because we have encountered a situation where a broker disconnects a client.

Laxilef avatar Jan 26 '25 00:01 Laxilef