Hi,
Could you please check the clientID, username, password in the following command?
AT+QMTCONN=0,“MY IBM CLIENT ID”[,“MY IBM USERNAME”[,“MY IBM PASSWORD”]]
User name and password are optional and you don’t need to use “[” character in the command.
Please see the following example MQTT application.
Please refer to the attached MQTT application document to get more detailed information about the commands. Quectel_GSM_MQTT_Application_Note_V1.2.pdf (518.0 KB)
ATI
Quectel_Ltd
Quectel_M66
Revision: M66FAR02A06BT
OK
AT+CPIN?
+CPIN: READY
OK
AT+CREG?
+CREG: 0,1
OK
AT+CGREG?
+CGREG: 0,1
OK
AT+QIFGCNT=0
OK
AT+QIDNSIP=0
OK
AT+QICSGP=1,“internet”
OK
AT+QIREGAPP
OK
AT+QIACT
OK
AT+QILOCIP
10.85.38.164
AT+QMTOPEN=1,“test.mosquitto.org”,1883
OK
+QMTOPEN: 1,0
AT+QMTOPEN?
+QMTOPEN: 1,“test.mosquitto.org”,1883
OK
AT+QMTCONN=1,“clientID123”
OK
+QMTCONN: 1,0,0
AT+QMTSUB=1,1,“topic/test1”,2
OK
+QMTSUB: 1,1,0,2
+QMTRECV: 1,0,topic/test1,test1
+QMTRECV: 1,0,topic/test1,message to topic/test1
AT+QMTPUB=1,1,2,1,“topic/test1”
module sent messafe ge
OK
+QMTRECV: 1,1,topic/test1,module sent messag
+QMTPUB: 1,1,0
AT+QMTPUB=1,1,2,1,“topic/test1”
module sent message to topic/test1
OK
+QMTRECV: 1,2,topic/test1,module sent message to topic/test1
+QMTPUB: 1,1,0
+QMTPUB: 1,1,0