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
SIM7500_SIM7600_SIM7800 Series_MQTT_AT Command Manual
Smart Machine Smart Decision
39 / 41
Need help?
Do you have a question about the SIM7500 Series and is the answer not in the manual?
Questions and answers