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.
18
3. "Internet of Things" AT command set
3.1 Summary of "IoT Capabilities" Directives
Command
Description
AT+HTPREQMODE
HTTP request method
AT+HTPURL
HTTP URL path
AT+HTPHEAD
HTTP headers
AT+MQTTCLOUD
MQTT platform
AT+MQTKPALIVE
MQTT heartbeat keep-alive period
AT+MQTDEVID
MQTT Client ID
AT+MQTUSER
MQTT User Name
AT+MQTPASS
MQTT Password
AT+MQTTPRDKEY
Alibaba Cloud Product Key
AT+MQTSUB
MQTT subscription topic
AT+MQTPUB
MQTT publish topic
3.2 MQTT and HTTP target IP or domain name configuration
Refer to "Query/Set the Working Mode of the Machine and the Network Parameters of the Target
Device".
Set the MQTT mode and target parameters:
Send: AT+SOCK=MQTTC, mqtt.heclouds.com,6002\r\n
Received:\r\n+OK\r\n
Set the MQTT mode and target parameters:
Send: AT+SOCK=HTTPC,www.baidu.com,80\r\n
Received:\r\n+OK\r\n
3.3 Query/set HTTP request method
Command
AT+HTPREQMODE
Function
Query/set HTTP request method
SendQuery
AT+HTPREQMODE<CR><LF>
Return
Query
<CR><LF>+OK=<Method><CR><LF>
SendSet
AT+HTPREQMODE=<Method><CR><LF>
ReturnSet
<CR><LF>+OK<CR><LF>
Remarks
Method: GET\POST