EasyManua.ls Logo

Quectel BG96 - MQTT Telemetry at Commands

Quectel BG96
90 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
MQTT telemetry ATcommands
Send the following AT command to enable MQTT: AT+ETMSTATE=startmqtt If the
configuration file [operation] <mode> is set to mqtt, then ETM automatically starts MQTT
after power up. If the <mode> is not set, after each reboot you must send
AT+ETMSTATE=startmqtt again.
The MQTT client registers each topic with an index that is used to publish the messages. The response
indicates acceptance or rejection of the topic. Optionally, you can configure a single fixed topic so the
Quectel BG96 module need not keep track of topic indices for sending or receiving data.
The MQTT client supports QoS 0 and 1, and always connects to the broker as a clean session. All
publish messages are queued in a non-volatile flash memory until they are sent to the broker. For QoS
1 messages, ETM waits for a puback from the broker before discarding the sent data and transmitting
the next message. This mechanism queues messages while a network connection is not available, and
forwards messages when the connection establishes.
In the event of a power failure, queued messages are retained until reconnection occurs. Retained
message storage is defined by nvqueuemaxsize in the Configuration File. For more information, see
Using the Quectel BG96 module configuration file on page62.
Retained messages are expunged from the flash memory when the broker successfully receives them.
Eseye-enabled Quectel BG96 module Developer Guide v1.8
44
MQTT telemetry ATcommands

Table of Contents

Other manuals for Quectel BG96

Related product manuals