MQTT AT Commands

We are using the Quectel EG800 Module for some MQTT communication.
We are trying to connect to open source mosquitto test broker/server.

We keep error at the last step when trying to subscribe or publish message.

Logs below:
07-01-2025 17:42:14.625 [TX] - AT+QMTCFG=“version”,4

07-01-2025 17:42:14.637 [RX] -
+QMTCFG: “version”,3

OK

07-01-2025 17:42:37.235 [TX] - AT+QMTCFG=“ssl”,0

07-01-2025 17:42:37.246 [RX] -
+QMTCFG: “ssl”,1,2

OK

07-01-2025 17:42:51.518 [TX] - AT+QMTCFG=“session”,1

07-01-2025 17:42:51.534 [RX] -
+QMTCFG: “session”,1

OK

07-01-2025 17:43:08.243 [TX] - AT+QMTCFG=“recv/mode”,0

07-01-2025 17:43:08.256 [RX] -
+QMTCFG: “recv/mode”,0,1

OK

07-01-2025 17:43:22.903 [TX] - AT+QMTCFG=“send/mode”,0

07-01-2025 17:43:22.914 [RX] -
+QMTCFG: “send/mode”,0

OK

07-01-2025 17:43:27.035 [TX] - AT+QMTOPEN=1,“test.mosquitto.org”,1883

07-01-2025 17:43:27.051 [RX] -
OK

+QMTOPEN: 1,0

07-01-2025 17:43:28.598 [TX] - AT+QMTCONN=1,“1”

07-01-2025 17:43:28.612 [RX] -
OK

+QMTCONN: 1,0,0

+QMTSTAT: 1,1

07-01-2025 17:43:35.407 [TX] - AT+QMTPUB=1,100,0,0,“danlaw”

07-01-2025 17:43:35.421 [RX] -
ERROR

Error code 1 means “Connection disconnected or reset by server”, you can try to excute AT+QMTOPEN and reconnect again.