> 012345678901234567890123456789012345678901234567890123456789
OK
//
Publish a message
AT+CMQTTPUB=0,1,60
OK
+CMQTTPUB: 0,0
//
Set one topic for the SUBSCRIBE message
AT+CMQTTSUBTOPIC=0,9,1
>123456789
OK
//
Subscribe a message
AT+CMQTTSUB=0
OK
+CMQTTSUB: 0,0
//
Subscribe one topic from the server
AT+CMQTTSUB=0,9,1
>simcommsg
OK
+CMQTTSUB: 0,0
//
Unsubscribe one topic from the server
AT+CMQTTUNSUB=0,9,0
>simcommsg
OK
+CMQTTUNSUB: 0,0
//
Disconnect from server
AT+CMQTTDISC=0,120
OK
+CMQTTDISC: 0,0
//Release the client
AT+CMQTTREL=0
OK
//stop MQTT Service
AT+CMQTTSTOP
OK
+CMQTTSTOP: 0
SIM7500_SIM7600_SIM7800 Series_MQTT_AT Command Manual
Smart Machine Smart Decision
38 / 41
Need help?
Do you have a question about the SIM7500 Series and is the answer not in the manual?