

Will flag: Bit 2 of the connect flags.The flag when set to true results in a clean session where the subscriptions are removed on disconnection and when set to false, a durable connection can be achieved where subscriptions remain and messages with high QoS are delivered on reconnection. This flag indicates the broker whether the client wants to establish a persistent connection or not. Clean session: Bit 1 of the connection flags.It denotes the presence or absence of fields in the payload. Connect Flags: The connect flag bytes contains parameters specifying the behavior of the MQTT connection.


The destination port is 1883, which is the default port for MQTT over TCP.
