Timeout settings provide five parameters, and the unit of the settings is in seconds.
Timeout | Description | Default Value | Order |
---|---|---|---|
CONNECT | Timeout for MQTT CONNECT request | 4 | 1 |
PUBLISH | Timeout for MQTT PUBLISH request | 2 | 2 |
SUBSCRIBE | Timeout for MQTT SUBSCRIBE / UNSUBSCRIBE request | 2 | 3 |
PINGREQ | Timeout for MQTT PINGREQ packet | 2 | 4 |
Keep Alive | Timeout for Keep Alive (PINGREQ intevals) | 30 | 5 |
Command Format
Each timeout value is listed by separating them with commas, without spaces, to the right of the equal sign in the +MCT 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+MCT=<CONNECT>,<PUBLISH>,<SUBSCRIBE>,<PINGREQ>,<Keep Alive>
at+mct=4,2,2,2,30
OK
at+mct=4
OK
at+mct=,2
OK
at+mct=,,2
OK
at+mct=,,,2
OK
at+mct=,,,,30
OK