adafruit / Adafruit_CircuitPython_MiniMQTT

MQTT Client Library for CircuitPython
Other
72 stars 50 forks source link

ping handling deserves improvement #198

Closed vladak closed 5 months ago

vladak commented 5 months ago

While working on #190, I noticed several things:

For the latter, the MQTT 3.1.1 spec says in section 2.2:

The client has a responsibility to send a message within each Keep Alive time period. In the absence of a data-related message during the time period, the client sends a PINGREQ message, which the server acknowledges with a PINGRESP message.