Type Syntax Returned Result
decimals and negative numbers.
If the passed-in text does not include
reported or desired, then reported is
assumed. The state reported
encapsulation is appended.
If the passed-in text includes reported
and/or desired, only the state
encapsulation is appended.
For example, for the reported text:
"{\"key\":\"value\"}" and
"{\"reported\":
{\"key\":\"value\"}}" are both sent as
{\"state\":{\"reported\":
{\"key\":\"value\"}}}
For example, for reported and desired text:
"{\"reported\":
{\"key\":\"value\"},\"desired\":
{\"key\":\"value\"}}" is sent as
{\"state\":{\"reported\":
{\"key\":\"value\"},\"desired\":
{\"key\":\"value\"}}}.
For complete mode:
The complete JSON data for the
shadow/update topic is required, in this
format:
AT+EMQPERSIST={"state":
{"reported":"{\"key\":value}"}}
where value is a numeric value, including
decimals and negative numbers.
Examples
For Simple mode:
AT+EMQPERSIST="{\"Temperature\":-3.5}"
For Complete mode, including setting AWSSHADOW to complete:
AT+ETMCFG=mqtt,awsshadow,complete
AT+EMQPERSIST="{\"state\":{\"reported\":{\"Temperature\":28.0}}}"
47
Eseye-enabled Quectel BG96 module Developer Guide v1.8
MQTT telemetry ATcommands