EasyManua.ls Logo

SimCom SIM7600 Series

SimCom SIM7600 Series
41 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Smart Machine Smart Decision
SIM7500_SIM7600_SIM7800 Series_MQTT_AT Command Manual 30 / 41
// Specify the parameter value of the PDP context corresponding to cid
AT+CGSOCKCONT=1,"IP","CMNET"
OK
AT+CGPADDR
+CGPADDR: 1,10.49.14.68 //ensure the first PDP context get a IP address
+CGPADDR: 4,0.0.0.0
OK
Note: usually CSOCKAUTH and CSOCKSETPN parameter are kept default if not care about.
3.1 Access to MQTT server not SSL/TLS
Following commands shows how to communicate with a MQTT server.
// start MQTT service, activate PDP context
AT+CMQTTSTART
OK
+CMQTTSTART: 0
// Acquire one client which will connect to a MQTT server not SSL/TLS
AT+CMQTTACCQ=0,”client test0”
OK
// Set the will topic for the CONNECT message
AT+CMQTTWILLTOPIC=0,10
>0123456789
OK
// Set the will message for the CONNECT message
AT+CMQTTWILLMSG=0,6,1
> qwerty
OK

Table of Contents

Other manuals for SimCom SIM7600 Series

Related product manuals