Smart Machine Smart Decision
SIM7500_SIM7600_SIM7800 Series_MQTT_AT Command Manual 39 / 41
3.5 Access to MQTT server without checking UTF8 coding
Following commands shows how to communicate with a MQTT server without checking UTF8 coding.
// 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
// Configure not checking UTF8 coding
AT+CMQTTCFG=”checkUTF8”,0,0
OK
// Connect to a MQTT server
AT+CMQTTCONNECT=0,"tcp://test.mosquitto.org:1883",60,1
OK
+CMQTTCONNECT: 0,0
// Subscribe one topic which is not UTF8 coding string.
//The data can input by hexadecimal format.
AT+CMQTTSUB=0,9,1
>鼢鼢鼢鼢?
OK
+CMQTTSUB: 0,0
// Set the topic for the PUBLISH message
AT+CMQTTTOPIC=0,9