EMQPUBCLOSE – remove a publish message topic
Remove a publish message topic.
Type Syntax Returned Result
Test
AT+EMQPUBCLOSE=? OK
+EMQPUBCLOSE:(0-7)
Read
AT+EMQPUBCLOSE? OK
or
ERROR
Write
AT+EMQPUBCLOSE=(0-7)
where:
(0-7) is a publish index number in the
range from 0, up to and including 7. You
must have already published a topic to the
selected index number, or the command
will return an error.
OK
+EMQPUBCLOSE:(0-7),<status>
or
ERROR
+EMQPUBCLOSE:(0-7),<status>
where:
•
(0-7) is the publish index number
you selected from the range
•
status is either:
•
0 – subscription cancelled
successfully
•
-1 – broker returned an
unsubnack
•
-2 – no topic was registered
for the given index
Check you have sent the
AT+ETMSTATE=startmqtt command
to enable MQTT.
Example:
AT+EMQPUBCLOSE=0
OK
+EMQPUBCLOSE: 0,0
Eseye-enabled Quectel BG96 module Developer Guide v1.8
50
MQTT telemetry ATcommands