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.
9
Function
Query/Set Local Port Number
SendQuery
AT+LPORT<CR>
Return
Query
<CR><LF>+OK=<Value><CR><LF>
SendSet
AT+LPORT=<Value><CR>
ReturnSet
<CR><LF>+OK<CR><LF>
Remarks
Value (port number): 0-65535,0 (the client mode uses a random port,
and the server mode needs to use the "non-0" parameter, otherwise the
device server will fail to open);
Example
Inquire:
Send: AT+LPORT\r\n
Received:\r\n+OK=8887\r\n
set up:
Send: AT+LPORT=8883\r\n
Received:\r\n+OK\r\n
1.15 Query/set the working mode of the machine and network
parameters of the target device
Command
AT+SOCK
SendQuery
Query and set network protocol parameters
Return
Query
AT+SOCK<CR><LF>
SendSet
<CR><LF>+OK=<Model, Remote IP, Remote Port><CR><LF>
ReturnSet
AT+SOCK=<Model, Remote IP, Remote Port><CR><LF>
Remarks
<CR><LF>+OK<CR><LF>
Function
Model (working mode): TCPC, TCPS, UDPC, UDPS, MQTTC,
HTTPC;
Remote IP (target IP/domain name): a maximum of 128-character
domain name can be configured;
Remote Port: 1-65535
Example
Inquire:
Send: AT+SOCK\r\n
Received:\r\n+OK=TCPC,192.168.3.3,8888\r\n
set up:
Send: AT+SOCK=TCPC,192.168.3.100,8886\r\n
Received:\r\n+OK\r\n