Mqtt conn command issue

22:01:35.075 -> >> AT

22:01:36.082 ->

22:01:36.082 -> OK

22:01:36.082 -> >> ATE0

22:01:37.086 ->

22:01:37.086 -> OK

22:01:37.086 -> >> AT+CPIN?

22:01:38.102 ->

22:01:38.102 -> +CPIN: READY

22:01:38.102 ->

22:01:38.102 -> OK

22:01:38.102 -> >> AT+CGREG?

22:01:39.087 ->

22:01:39.087 -> +CGREG: 0,5

22:01:39.087 ->

22:01:39.087 -> OK

22:01:39.087 -> >> AT+QICSGP=1,1,"airtelgprs.com","","",1

22:01:40.100 ->

22:01:40.100 -> ERROR

22:01:40.100 -> >> AT+QIACT=1

22:01:43.080 ->

22:01:43.080 -> ERROR

22:01:43.080 -> >> AT+QMTCFG="SSL",0,1,2

22:01:44.109 ->

22:01:44.109 -> OK

22:01:44.109 -> >> AT+QSSLCFG="cacert",2,"UFS:ISRG Root X1.pem"

22:01:45.092 ->

22:01:45.092 -> OK

22:01:45.092 -> >> AT+QSSLCFG="seclevel",2,1

22:01:46.102 ->

22:01:46.102 -> OK

22:01:46.102 -> >> AT+QSSLCFG="sslversion",2,4

22:01:47.085 ->

22:01:47.085 -> OK

22:01:47.085 -> >> AT+QSSLCFG="ignorelocaltime",2,1

22:01:48.095 ->

22:01:48.095 -> OK

22:01:48.095 -> >> AT+QMTOPEN=0,"feddc541595f44b6809ec4b6416735bb.s1.eu.hivemq.cloud",8883

22:01:54.077 ->

22:01:54.077 -> OK
22:01:54.125 ->

22:01:54.125 -> +QMTOPEN: 0,0

22:01:54.125 -> >> AT+QMTCONN=0,"esp32-client","mohitdavar","Rd@182304"

22:01:57.085 ->

22:01:57.085 -> OK

22:01:57.085 ->

22:01:57.085 -> +QMTCONN: 0,0,5

22:01:57.085 ->

22:01:57.085 -> +QMTSTAT: 0,4

22:01:57.085 -> >> AT+QMTSUB=0,1,"esp32/ec200u/data",1

22:01:59.079 ->

22:01:59.079 -> ERROR

22:01:59.112 -> >> AT+QMTPUB=0,1,1,0,"esp32/ec200u/data","mohitdavar","Rd@182304"

22:02:00.091 ->

22:02:00.091 -> ERROR

22:02:00.091 -> Message Published.

above is the logs while i am trying to connect my server the i am having issue in QMTTCONN command

Error code 4 means: “Receiving CONNACK packet timed out or failed”
You can try these solutions:

  1. Check if the username and password are correct.
  2. Ensure that the client ID is not occupied.
  3. Rebuilding MQTT connection and attempting to send again
    CONNECT package to server.