I have BG96 modem and am trying to establish Azure connection over MQTT.
I have executed below AT commands,
AT+CGATT=1
OK
AT+QICSGP=1,1,"live.vodafone.com","","",0
OK
AT+CGREG?
+CGREG: 0,1
OK
AT+QIACT=1
OK
AT+QIDNSCFG=1
+QIDNSCFG: 1,"10.169.30.245","10.169.30.244"
OK
AT+QIACT?
+QIACT: 1,1,1,"10.188.26.104"
OK
AT+QMTOPEN=1,"waterfall.azure-devices.net",8883
OK
+QMTOPEN: 1,0
AT+QMTCONN=1,"Test","abc.azure-devices.net/Test?api-version=2018-06-30","SharedAccessSignature sr=abc.azure-deviceset%2Fdevices%2FTest&sig=mo4avM89v4%2F688utBgp0PMnTR%2F4Ewuzup0aJkDrh52A%3D&"
OK
+QMTSTAT: 1,1
As you can see, everytime I try to connect I am getting QMTSTAT as disconnecte. I am executing this command within 10s of open request.
Please help me how to establish connection to azure.
Below are full commands,
AT+CGATT=1
OK
AT+QICSGP=1,1,“live.vodafone.com”,"","",0
OK
AT+CGREG?
+CGREG: 0,1
OK
AT+QIACT=1
OK
AT+QIACT?
+QIACT: 1,1,1,"10.188.26.104"
OK
AT+QSSLCFG="ignorelocaltime",1,1
OK
AT+QSSLCFG="seclevel",2,0
OK
AT+QMTCFG="SSL",1,0
OK
AT+QMTOPEN=1,"abc.azure-devices.net",8883
OK
+QMTOPEN: 1,0
AT+QMTCONN=1,"Test","abc.azure-devices.net/Test?api-version=2018-06-30","SharedAccessSignature sr=abc.azure-devices.net/devices/Test&sig=L6E4gvMu0GXQU0Z5eXgRY8qnumv7Z5ntEf4djx5bsgQ%3d&se=1585716616"
OK
+QMTSTAT: 1,1
Darshan, are you still experiencing this issue with AzureIOTHUB and BG96 MQTT?
I am seeing the same results. Having triple checked everything the only difference I can only see between our two attempts are the absence of a “/” between the deviceId and the api-version=2018-06-30 in the username field.
I will let you know what solved this when I get it, please do the same if you find the solution first.