hengdu Ebyte Electronic Technology Co., Ltd.
EA01-SG UserManual
Copyright ©2012–2020
,C
hengdu Ebyte Electronic Technology Co., Ltd
17
AT+MQTTSUBTOP<NEWLINE>
OK
QOS:< QOS >
< TOPICNAME>
Parameter Configuration Instructions
:
<Topicname>
:
Subscribe To a String Of Content Within 200 Bytes.
<Qos>
:
Quality Of Service Support Is Qos=0, Qos=1, And Qos=2.
3.14.6
MQTT PUBLISH THEME CONFIGURATION
AT ORDER
RESPONSE
AT+MQTTPUBTOP=<TOPICNAME>,<QOS><NEWLINE>
OK
AT+MQTTPUBTOP<NEWLINE>
OK
QOS:< QOS >
< TOPICNAME>
Parameter Configuration Instructions
:
<Topicname>
:
Publish The Content Of The Topic In a String Within 200 Bytes.
<Qos>
:
Quality Of Service Support Qos=0; Qos=1; Qos=2.
3.14.7
MQTT AND SERVER KEEPALIVE SETTINGS
AT ORDER
RESPONSE
AT+MQTTALIVE=<ALIVE_TIME><NEWLINE>
OK
AT+MQTTALIVE<NEWLINE>
OK
KEEP ALIVE TIME:< ALIVE_TIME >
Parameter Configuration Instructions
:
<Alive_Time>
,
Server Keep-Alive Time, The Unit Is Seconds, The DATE Range Is 2 Bytes, The Default Is
600 Seconds (10 Minutes).
Note: When The Power Loss Needs To Be Saved, The Input AT + NRB Instruction Will Save The Parameters Into
The Flash, And Automatically Restart The Effect
。
3.15
COAP FUNCTION CONFIGURATION
3.15.1
COAP FUNCTION DECLARATION
Firstly, The AT + COAP ADDR Command Is Used To Configure The Address And Port Of The COAP Server To Open The
COAP Function at The Same Time, And The at + NRB Soft Reset Restart Takes Effect;
;
Secondly, The AT + PDUTYPE Instruction Selects The DATE Protocol Type As COAP;
;
Thirdly, The AT + ADDOPTION, AT + ADDTOKEN, AND AT + COAPMINUS Instructions Add Or Remove The Option Or
Token In The Message
;
Finally, The AT + COAPHEADER Command Sends An Unloaded Message; The ATD * 98 Enters The Transmission Mode To Input
Serial Port Transmission DATE, And The DATE Sent Is Loaded.COAP Message (Serial Port Transmission DATE Is The Payload Of
COAP Message).
3.15.2
COAP ADDRESS PARAMETER CONFIGURATION
AT ORDER
RESPONSE
Содержание EA01-SG
Страница 1: ...EA01 SG User Manual NB IoT Module...