Wednesday, July 8, 2015

MQTT dissecting PINGREQ & PINGRESP

The PINGREQ message is an “are you alive“ message that is sent from a connected client to the server. 

Below is structure of PINGREQ 
Like other messages, this has a fixed header and the remaining length and the remaining data will be zero. The request type is 12. 
In the fixed header, the DUP, QoS level, RETAIN flags will be set to zero. 
Below is structure of PINGRESP
A PINGRESP is message sent by server to PINGREQ message to say “Yes am alive” 
Like PINGREQ message, this message is very simple and just contains the message type as 13 and no DUP, RETAIN and QoS flag set. 
There is no payload and there is no variable header for this message 

References:

No comments:

Post a Comment