Connection Flags


Three flags are provided for MQTT connection configuration.

Flag Value Default Value Order
Clean Session 0 or 1 1 1
Will QoS 0 or 1 0 2
Will Retain 0 or 1 0 3

Connection Flag Setting: +MCCF

Command Format

Each timeout value is listed by separating them with commas, without spaces, to the right of the equal sign in the +MCCF command. It is essential to list them in the order of their settings. Each value can be omitted, and if omitted, the previous setting value will be retained. When omitting values, you can omit both the commas and the values on the right side based on the value you want to set. However, for the left items of the setting value, you can omit only the values, excluding the commas.

AT+MCCF=<Clean Session>,<Will QoS>,<Will Retain>

Examples

at+mccf=1,0,0
OK

at+mccf=1
OK

at+mccf=,0
OK

at+mccf=,,0
OK