BG95-M2 MQTT connection issue

Hello,

I’m trying to implement BG95-M2 in my current design. I have to connect to MQTT broker via NB-IoT. So far I have connection with network and I can connect to broker server by AT+QMTOPEN only by using IP address of server. Name is not recognized and translated by DNS. After that I’m using AT+QMTCONN to login, but I recive always error number 3. Below I’m posting part of log:

AT+QNWINFO
+QNWINFO: “NBIoT”,“26002”,“LTE BAND 20”,6397

OK
AT+QMTOPEN=0,“5.196.95.208”,1883
OK

+QMTOPEN: 0,0
AT+QMTCONN=0,“BC95user”
OK
AT+QMTCONN?
+QMTCONN: 0,2

OK

+QMTSTAT: 0,3

What can be wrong?

More info about my module:

ATI
Quectel
BG95M2
Revision: BG95M2LAR02A02_BETA1019A

AT&V
&C: 1
&D: 2
&F: 0
&W: 0
Q: 0
V: 1
X: 1
Z: 0
E: 1
S0: 0
S4: 10
S5: 8
S6: 2
S7: 0
S8: 2
S10: 14
S3: 13

Regards

Piotr Durys

Hi Piotr-Durys,

pls check the following two item。

  1. Have your registered your module on mqtt server ?

  2. Have your set AT+QMTCFG as below ?

please notice your password ?