AT Command

Description

AT+SMCONN command is used to setup the MQTT connection in Simcom modules that support the MQTT feature.


Support

Simcom Module Tutorial

Examples

KeywordsAT+SMCONN syntax, examples, parameters, error, input, response.

Try the below script in the AT Command Tester tool

//Script: at+smconn
//The AT commands in this script are applicable for Simcom modules only
//Check SIMCOM Module AT Command documentation

//Set up the MQTT URL
AT+SMCONF="URL",117.131.85.139,6000

//Wait
WAIT=1

//Set up the MQTT time to connect server
AT+SMCONF="KEEPTIME",60

//Connect to the MQTT server
AT+SMCONN

Output of the above script in the AT Command Tester tool

AT+SMCONF="URL",117.131.85.139,6000

OK
AT+SMCONF="KEEPTIME",60

OK
AT+SMCONN

OK