Connection Payload


Five payload settings are provided for MQTT connection.

Payload Description Order Note
Client ID Client ID 1 -
Will Topic Topic to store will message 2 -
Will Message Will message 3 -
User Name User name for authentication 4 Max. 128 Bytes
Password Password for authentication 5 Max. 256 Bytes

Setting Connection Payload: +MCCP

Command Format

Each timeout value is listed by separating them with commas, without spaces, to the right of the equal sign in the +MCCP 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+MCCP="<Client ID>","<Will Topic>","<Will Message>","<User Name>","<Password>"

Examples

at+mccp="test_client_id"
OK

at+mccp=,"test/will_topic","test will message"
OK

at+mbt=0,"test/topic_0"
OK
at+mbm=0,"message 0"
OK
at+mccp=,0,0
OK

at+mccp=,,,"test_user","test_password"
OK