Publish and subscribe via AT command

hello community team,

I try to publish and subscribe my dashboard using BG96 module via AT command i try as below
AT+QMTOPEN=0,“mqtt.mydevices.com”,1883
+QMTOPEN: 0,0
AT+QMTCONN=0,“clientid”,“username”,“password”
+QMTCONN: 0,0,0
AT+QMTSUB=0,1,“v1/username/things/clientid/cmd/5",2
ERROR

in both public and subscribe method getting error from server please help me how it resolve

The AT command looks correct. Your device is getting connect successfully but getting an error while publishing/subscribing data. Not sure what is the issue here. What is the output of the publish, same error?

same error come in publish method

can you check if your device is connected before you publish the data. Also, try lower QoS.