High-Flying
HF-LPT120 Low Power WiFi Module User Manual
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com)
- 42 -
Query Operation
AT+TCPTOB<CR>
+ok=<time><CR><LF><CR><LF>
Set Operation
AT+TCPTOB=<time ><CR>
+ok<CR><LF><CR><LF>
Parameters
Time: TCP timeout
<= 600:600s
>=0:0 means no timeout
Default:300s
If the SOCKB TCP don't receive any data from TCP server for TCP tmeout setting, the
module will break and reconnect the TCP server. If it receive data from server, the timeout
counter will be clear.
4.2.2.30.
AT+TCPLKB
Function:Query SOCKB connection status
Format:
AT+TCPLKB<CR>
+ok=<sta><CR><LF><CR><LF>
Parameters:
sta.: SOCKB connection status
on: TCP connected
off: TCP disconnected
4.2.2.31.
AT+SNDB
Function: Send datas to SOCKB at Command Mode
Format:
AT+SNDB=<data_lenth ><CR>
+ok<CR><LF><CR><LF>
Parameters:
data_lenth: Lenth of send data. Range: 0~1000 Byte
The UART port will wait 3 seconds for input after this command is sent OK. The data received
from UART port is sent to SOCKB. If the interval of two bytes is more than 10ms, the data will be
sent instantly.
4.2.2.32.
AT+RCVB
Function: Receive datas from SOCKB at Command Mode
Format:
AT+RCVB=<data_lenth><CR>
+ok=< data_lenth, data_content><CR><LF><CR><LF>
Parameters:
data_lenth: Lenth of receive data. Range: 0~1000 Byte
data_content: contents of receive data.