Phau Ntawv Qhia

Table Of Contents
Chengdu Ebyte Electronic Technology Co., Ltd. E90-DTU(xxxSLxx-ETH)_V2.0-AT Instruction Set
Copyright ©2012–2022Chengdu Ebyte Electronic Technology Co., Ltd.
25
4. AT Configuration Example
4.1 Example of connecting to a standard MQTT3.1.1 server
{
Client id:876275396
mqtt username:485233
mqtt password:E_DEV01
mqtt server: mqtt.heclouds.com
mqtt port:6002
}
Restore factory settings before configuration to avoid enabling unused functions.
SEND+++
3SSENDAT
RECV(+OK=AT enable)
SENDAT+RESTORE
RECV(+OK)
The above steps can use the hardware to restore the factory settings.
Step 1: Enter AT configuration mode;
SEND+++
3SSENDAT
RECV(+OK=AT enable)
Step 2: Enable dynamic IP, if you configure the corresponding IP for the local area network
MQTT server, use dynamic IP here;
SEND(AT+WAN=DHCP,192.168.3.7,255.255.255.0,192.168.3.1,114.114.114.114)
RECV(+OK)
Step 3: Configure the working mode and the MQTT server address and port
SEND(AT+SOCK=MQTTC,mqtt.heclouds.com,6002)
RECV(+OK=And local port has been set to 0)
Step 4: Select the MQTT platform
SEND(AT+MQTTCLOUD=STANDARD)
RECV(+OK)
Step 5: Configure the Client id of the device
SEND(AT+MQTDEVID=876275396)
RECV(+OK)
Step 6: Configure the mqtt username of the device
SEND(AT+MQTUSER=485233)
RECV(+OK)
Step 7: Configure the mqtt password of the device
SEND(AT+MQTPASS=E_DEV01)
RECV(+OK)