Dear All,
I am using a BC95-g module to publish some data and subscribe to a topic. When I try to subscribe, I get response +QMTSTAT: 0,1, but I just opened and connected to the net and even verified that opened correctly. Here are the commands I am using:
AT+QMTOPEN=0,<host_name>,1883
OK
+QMTOPEN: 0,0
AT+QMTCONN=0, “<clientID”>,"",""
OK
+QMTCONN: 0,0,0
AT+QMTPUB=0,0,0,0,""
OK
+QMTPUB: 0,0,0
AT+QMTDISC=0
OK
+QMTDISC: 0,0
AT+QMTOPEN=0,<host_name>,1883
OK
+QMTOPEN: 0,0
AT+QMTCONN=0, “<clientID”>,"",""
OK
+QMTCONN: 0,0,0
AT+QMTOPEN?
+QMTOPEN: 0,"<host_name>",1883
OK
AT+QMTSUB=0,1,"",0
OK
+QMTSUB: 0,1,0,0
+QMTSTAT: 0,1
AT+QMTOPEN?
OK
Every time I execute these commands, response is the same. It seems that when I write AT+QMTSUB, it somehow disconnects from server. It is all done in a much shorter period of time that keepalive, so I don’t know where the problem could come from.
Thank you in advanced!