EMQPUBOPEN – create a publish message topic
Create and view publish message topics, which will enable you to publish data to things in AWS IoT
Console.
Type Syntax Response
Test
AT+EMQPUBOPEN=? +EMQPUBOPEN: (0-7),<topic>
OK
Read
AT+EMQPUBOPEN?
List of publish topics.
+EMQPUBOPEN topics:
0 <publishtopic0>/<AWSthingnameA>
1 <publishtopic1>/<AWSthingnameB>
OK
where:
•
0, 1, and so on are the index numbers
•
<publishtopicn> is the unique
name for each publish index
•
<AWSthingnameA> is the unique
name for the thing that you defined
in AWS. Maximum length: 32768
characters (32kB)(for ASCIIhex, this
means 500 bytes of binary data). For
JSON, escaped characters count as 1
character.
•
null is an empty publish topic
The Quectel BG96 module doesnot report
empty topics.
Write
AT+EMQPUBOPEN=(0-7),<topic>
where:
•
(0-7) is a publish index number in
the range from 0, up to and
including 7.
•
<topic> is the publish topic title
with a maximum length of 246
characters. Topic titles cannot
contain special characters.
OK
+EMQPUBOPEN: (0-7),<status>
where
•
(0-7) is the publish index number
you selected from the range
•
<status> is:
•
0 – successfully installed the
publish topic
•
-2 – socket already in use
or
Eseye-enabled Quectel BG96 module Developer Guide v1.8
48
MQTT telemetry ATcommands