hengdu Ebyte Electronic Technology Co., Ltd.
EA01-SG UserManual
Copyright ©2012–2020
,C
hengdu Ebyte Electronic Technology Co., Ltd
16
AT ORDER
RESPONSE
AT+MQTTMODE=<MODE><NEWLINE>
OK
AT+MQTTMODE <NEWLINE>
OK
MODE:< MODE >
Parameter Configuration Instructions
:
<Type>
,
0 Means Shutdown Of MQTT Function; 1 Means Access To Ali Cloud Platform; 2 Means
Access To Onenet Platform And Other Internet Of Things Platform Supporting Standard MQTT Protocol;
3 Means Access To Baidu Cloud Platform.
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.14.3
MQTT ADDRESS AND PORT CONFIGURATION
AT ORDER
RESPONSE
AT+MQTTADDR=<ADDR>,<PORT><NEWLINE>
OK
AT+MQTTADDR<NEWLINE>
OK
ADDRESS: <ADDR>,PORT: <PORT>
When MQTT Mode Is 0, This Command Prompts "MQTT Closed"; When MQTT Mode Is 1; When MQTT
Mode, Onenet Or MQTT Mode Is 2; And When m q t t Mode Is 3;
;
Parameter Configuration Instructions
:
<Addr>
,
Represents The Server's IP Address Or Domain Name, Up To 50 Bytes.
。
<Port>
,
Represents The Server-Side Port
。
Note: The Domain Name Addresses Of The Three Platforms Of Baidu Cloud, Onenet, And MQTT Generally
Do Not Change. If The Domain Name Does Change, It Can Also Be Modified Through Instructions.
3.14.4
MQTT CONNECTION THREE-ELEMENT CONFIGURATION
AT ORDER
RESPONSE
AT+MQTTCONN=<VALUE0>,<VALUE1>,<VALUE2><NEW
LINE>
OK
AT+MQTTCONN<NEWLINE>
OK
<VALUE0>
<VALUE1>
<VALUE2>
Each Of The Three Elements Is No Longer Than 40 Bytes.
For The Three Element Values Of Each Platform, See The Corresponding Application Guidance.
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.14.5
MQTT SUBSCRIPTION TOPIC CONFIGURATION
AT ORDER
RESPONSE
AT+MQTTSUBTOP=<TOPICNAME>.<QOS><NEWLINE>
OK
Содержание EA01-SG
Страница 1: ...EA01 SG User Manual NB IoT Module...