Three settings for Quality of Service (QoS) are provided.
Parameter | Description | Values | Order |
---|---|---|---|
PUBLISH QoS | QoS field of PUBLISH packet | 0, 1 | 1 |
RETAIN | RETAIN flag of PUBLISH packet | 0, 1 | 2 |
Requested QoS | Requested QoS field of SUBSCRIBE payload | 0, 1 | 3 |
Command Format
Each timeout value is listed by separating them with commas, without spaces, to the right of the equal sign in the +MCB 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+MCB=<PUBLISH QoS>,<RETAIN>,<Requested QoS>
at+mcb=0,0,0
OK
at+mcb=0
OK
at+mcb=,0
OK
at+mcb=,,0
OK