BG77 AT+QMTCLOSE Error

Hi all,

We have the first project with a BG77 and are currently experiencing a problem.

After successfully connecting to Azure Cloud, the second connection isn’t working properly. The AT+QMTOPEN isn’t working (the second time). We first perform a succesfull disconnect, which works as we can see.

AT+QMTOPEN=0,“xxxx”,8883
OK
+QMTOPEN: 0.0

AT+QMTCONN=0,“000001”, “xx”
OK
+QMTCONN: 0.0.0

AT+QMTPUB=0.1,1.0, “xx”
xx
+QMTPUB: 0.1.0

AT+QMTCLOSE=0
OK
+QMTCLOSE: 0.0

After 30 seconds i try another connection..
So I get the second connection.

AT+QMTOPEN=0,“xx”,8883
OK
+QMTOPEN: 0.0

AT+QMTCONN=0,“000001”, “xx”
OK
+QMTSTAT: 0.1

It seems the connection isn’t completely closed, and that’s why I can’t/aren’t allowed to reconnect.

Thanks

Also, you will need to re-enable the SSL.
AT+QMTCFG=“ssl”,0,1,2

Before I connect for the first time, I turn this on. Is this a setting that isn’t saved?

Settings init state:
AT+QMTCFG="ssl",0,1,1
AT+QMTCFG="version",0,4
AT+QMTCFG="recv/mode",0,1

Please add it and try again.

I’m now redoing all the configurations when I try to connect. This works. The SSL and MQTT configuration settings aren’t saved, so turning off the modem and then starting a new transmission didn’t work.

Thanks for the input!