
Appendix B. The MQTT protocol 229
a. The first byte has the message type as 2 denoting a CONNACK message.
b. The second byte has the remaining length of the message as 2 bytes.
2. Then, we have the variable header that is broken up as follows.
a. The first byte is Reserved and is therefore set to 0.
b. The second byte has the return code. It is 0 denoting a successful connection.
3. The payload does not exist for a CONNACK message.
B.3 Publishing with QoS 0
After the client is connected to the server, you can publish as described here:
1. Set up Wireshark as described in “Set up for tracing” on page 222.
2. In the WMQTT Utility, enter a topic name, such ...