HF-LPT220 Low Power WiFi Module User Manual
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com)
- 39 -
Parameters:
sta: feedback result
Success
Timeout
Unknown host
4.2.2.22.
AT+NETP
Function: Set/Query network protocol parameters, Setting is valid after reset.
Format:
Query Operation
AT+NETP<CR>
+ok=<protocol,CS,port,IP><CR><LF><CR><LF>
Set Operation
AT+NETP=<protocol,CS,port,IP><CR>
+ok<CR><LF><CR><LF>
Parameters:
protocol:
TCP
UDP
CS: Network mode:
SERVER
CLIENT
Port: protocol port ID: Decimal digit and less than 65535
IP: Server’s IP address when module set as client
If set as UDP SERVER, the module will save the IP address and port of the latest UDP
packet received. The data will be sent to the saved IP address and port. If the module hasn’t
saved any IP address and port when power up. The data will be sent to the IP address and port
which is set by this command.
If set as UDP,CLIENT, the data will always be sent to the IP address and port set by this
command.
4.2.2.23.
AT+MAXSK
Function:Set/ Query TCP Client connection number.
Format:
Query Operation
AT+MAXSK<CR>
+ok=<num><CR><LF><CR><LF>
Set Operation
AT+MAXSK=<num><CR>
+ok<CR><LF><CR><LF>
Parameters:
num: TCP Client connection number. Range: 1~5. 5 is the default value it means
when the module work in TCP server , it accepts max 5 TCP client connect to it.