I am trying to get MQTT working through my module. I am using the quectel evb kit. Sim I use is a postpaid Vodafone 4g Sim. The steps I followed are:
AT+CGDCONT=1,"IP","www"
OK
AT+CGACT?
+CGACT: 1,1
+CGACT: 2,0
+CGACT: 3,0
OK
AT+CGACT=1,0
ERROR
AT+CGACT=1,1
ERROR
AT+CGPADDR=1
+CGPADDR: 1,"10.70.241.33"
OK
AT+QMTCFG="recv/mode",0,0,1
OK
AT+QMTOPEN=0,"<url>",1883
OK
+QMTOPEN: 0,0
AT+QMTCONN=0,"clientExample","id","password"
OK
+QMTCONN: 0,0,0
AT+QMTPUBEX=0,0,0,0,"test/",12
> Hello! World
OK
+QMTPUBEX: 0,0,0
This procedure works although AT+CGACT gives ERROR. As a matter of fact AT+CGACT output OK when I delete the apn AT+CGDCONT=1,"IP",""
following the same procedure I am able to send data.
AT+CGDCONT?
+CGDCONT: 1,"IP","","0.0.0.0",0,0,0,0
+CGDCONT: 2,"IP","","0.0.0.0",0,0,0,0
+CGDCONT: 3,"IP","","0.0.0.0",0,0,0,0
OK
AT+QMTOPEN=0,"<URL>",1883
OK
+QMTOPEN: 0,0
AT+QMTCONN=0,"clientExample","id","password"
OK
+QMTCONN: 0,0,0
AT+QMTPUBEX=0,0,0,0,"test/",12
> Hello! World
OK
+QMTPUBEX: 0,0,0
Why does this work even without APN?
Additionally I cannot seem to enable SSL with and without apn :
AT+QMTCFG=“SSL”,0,1,0
ERROR
This all did work during my initial testing but then it stopped and hasn’t worked ever since.
Also is it possible to set the timezone to UTC?
Any help would be appreciated, thank you.