Detailed Explanation of MQTT Packets【04】: PINGREQ & PINGRESP Heartbeat Messages

Detailed Explanation of MQTT Packets【04】: PINGREQ & PINGRESP Heartbeat Messages

In previous articles, we introduced the following topics in MQTT 5.0:Detailed Explanation of MQTT Packets【01】: CONNECT & CONNACKDetailed Explanation of MQTT Packets【02】: PUBLISH & PUBACKDetailed Explanation of MQTT Packets【03】: SUBSCRIBE & UNSUBSCRIBENow, we will introduce the control packets used to maintain the connection: PINGREQ and PINGRESP. In addition to the control packets for connecting, publishing, … Read more

Learning MQTT Protocol: 007 – Keep Alive Mechanism and Corresponding Messages (PINGREQ, PINGRESP)

Learning MQTT Protocol: 007 - Keep Alive Mechanism and Corresponding Messages (PINGREQ, PINGRESP)

Background Keep alive is part of the variable header in the CONNECT message. We have mentioned that the Broker needs to know whether the Client has disconnected abnormally to send the last will message. In fact, the Client also needs to quickly detect if it has lost the connection to the Broker in order to … Read more