Access To Ssl/Tls Mqtt Server (Only Verify The Server) - SimCom SIM7500 Series Command Manual

Mqtt at, lte module
Hide thumbs Also See for SIM7500 Series:
Table of Contents

Advertisement

Smart Machine Smart Decision
//
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

3.3 Access to SSL/TLS MQTT server (only verify the server)

Following commands shows how to access to a SSL/TLS MQTT server with verifying the server. It needs to
configure the authentication mode to 1 and the right server root CA, and then it will connect to the server
successfully.
AT+CSSLCFG="sslversion",0,4// Set the SSL version of the first SSL context
OK
// Set the authentication mode(verify server) of the first SSL context
AT+CSSLCFG="authmode",0,1
OK
// Set the server root CA of the first SSL context
AT+CSSLCFG="cacert",0,"server_ca.pem"
OK
AT+CMQTTSTART
// start MQTT service, activate PDP context
OK
+CMQTTSTART: 0
//
Acquire one client which will connect to a SSL/TLS MQTT server
AT+CMQTTACCQ=0,"client
test0",1
OK
// Set the first SSL context to be used in the SSL connection
AT+CMQTTSSLCFG=0,0
OK
SIM7500_SIM7600_SIM7800 Series_MQTT_AT Command Manual
34 / 41

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SIM7500 Series and is the answer not in the manual?

Questions and answers

Subscribe to Our Youtube Channel

This manual is also suitable for:

Sim7800 seriesSim7600 series

Table of Contents