Hi,
I’m trying to connect to my HiveMQ Cloud instance using a Quectel LTE module via MQTT over TLS (port 8883), but the connection keeps failing with the following result:
AT+QMTCONN=0,“xxxxx”,“xxxxx”,“xxxxx”
OK
+QMTSTAT: 0,1
Here is the full command sequence I used:
AT
OK
AT+CFUN=1
OK
AT+CPIN?
+CPIN: READY
OK
AT+CEREG?
+CEREG: 0,5
OK
AT+CSQ
+CSQ: 16,99
OK
AT+QCDS
+QCDS: “SRV”,“CAT-M”,45005,2500,2F9F27,R13,3,107,10019,-81,-110,-15,3,0,0,0,6
OK
AT+QIDEACT=1
OK
AT+QFDEL=“cacert.pem”
+CME ERROR: 405
AT+QMTDISC=2
OK
AT+QIACT=1
OK
AT+QIACT?
+QIACT: 1,1,1,“100.85.175.1”
OK
AT+QMTCFG=“keepalive”,2,300
OK
AT+QMTCFG=“ssl”,4,1,1
OK
AT+QFUPL=“cacert.pem”,3689,100
CONNECT
+QFUPL: 3689,2439
OK
AT+QSSLCFG=“cacert”,1,“cacert.pem”
OK
AT+QSSLCFG=“seclevel”,1,1
OK
AT+QSSLCFG=“sslversion”,1,4
OK
AT+QSSLCFG=“ciphersuite”,1,0XFFFF
OK
AT+QSSLCFG=“ignorelocaltime”,1,1
OK
AT+QSSLCFG=“sni”,1,1
OK
AT+QMTOPEN=0,“66ef681437e44102b5c0a2737eba588.s2.eu.hivemq.cloud”,8883
OK
+QMTOPEN: 0,0
AT+QMTCONN=0,“xxxxxxx”,“xxxxx”,“xxxxxxx”
OK
+QMTSTAT: 0,1
- I uploaded a valid
fullchain.pemthat works fine in other clients. - I verified the same credentials and certificate are working perfectly in MQTT.fx and MQTTX.
- The HiveMQ Cloud user
neojtshas Publish and Subscribe permission. - Client certificate authentication is disabled on my plan.
Yet, when I try to connect with this module, the connection fails immediately with +QMTSTAT: 0,1.
Could you please help me identify what’s going wrong or what else I should check?
Thanks in advance for your support.
Best regards,
Emily