
Smart Machine Smart Decision
SIM7500_SIM7600_SIM7800 Series_MQTT_AT Command Manual 3 / 41
Contents
Version History.................................................................................................................................. 2
Contents ............................................................................................................................................ 3
1Introduction................................................................................................................................ 4
1.1 The SSL Context Management AT Commands (for SSL/TLS MQTT)..................................................4
1.2 The process of Using MQTT AT Commands .....................................................................................4
2 Description of AT Command ........................................................................................................... 5
2.1 SSL Context Management AT (only for SSL/TLS MQTT)..................................................................5
2.1.1 AT+CSSLCFG Configure the SSL Context...........................................................................5
2.1.2 AT+CCERTDOWN Download certificate into the module .....................................................9
2.1.3 AT+CCERTLIST List certificates ........................................................................................9
2.1.4 AT+CCERTDELE Delete certificates.................................................................................10
2.2 MQTT Services AT.......................................................................................................................11
2.2.1 AT+CMQTTSTART Start MQTT service ...........................................................................11
2.2.2 AT+CMQTTSTOP Stop MQTT service..............................................................................11
2.2.3 AT+CMQTTACCQ Acquire a client ..................................................................................12
2.2.4 AT+CMQTTREL Release a client......................................................................................13
2.2.5 AT+CMQTTSSLCFG Set the SSL context (only for SSL/TLS MQTT) .................................13
2.2.6 AT+CMQTTWILLTOPIC Input the topic of will message....................................................14
2.2.7 AT+CMQTTWILLMSG Input the will message..................................................................15
2.2.8 AT+CMQTTCONNECT Connect to MQTT server..............................................................16
2.2.9 AT+CMQTTDISC Disconnect from server .........................................................................17
2.2.10 AT+CMQTTTOPIC Input the topic of publish message......................................................18
2.2.11 AT+CMQTTPAYLOAD Input the publish message ...........................................................19
2.2.12 AT+CMQTTPUB Publish a message to server ..................................................................20
2.2.13 AT+CMQTTSUBTOPIC Input the topic of subscribe message............................................21
2.2.14 AT+CMQTTSUB Subscribe a message to server ...............................................................22
2.2.15 AT+CMQTTUNSUBTOPIC Input the topic of unsubscribe message...................................23
2.2.16 AT+CMQTTUNSUB Unsubscribe a message to server ......................................................24
2.2.17 AT+CMQTTCFG Configure the MQTT Context ...............................................................25
2.3 Command result codes and unsolicited codes ..................................................................................26
2.3.1 Command result <err> codes ...............................................................................................26
2.3.2 Unsolicited result codes.......................................................................................................27
3 Example........................................................................................................................................ 29
3.1 Access to MQTT server not SSL/TLS.............................................................................................30
3.2 Connect to SSL/TLS MQTT server (not verify server) .....................................................................32
3.3 Access to SSL/TLS MQTT server (only verify the server) ................................................................34
3.4 Access to SSL/TLS MQTT server (verify server and client)..............................................................36
3.5 Access to MQTT server without checking UTF8 coding ...................................................................39