HF-LPC3X0 Series Wi-Fi&BLE User Manual
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com)
- 50 -
off: TCP link not setup;
4.2.2.19.
AT+TCPTO
◼
Function: Set/Query SOCKA TCP timeout; Setting is valid after reset.
◼
Format:
◆
Query Operation
AT+TCPTO<CR>
+ok=<time><CR><LF><CR><LF>
◆
Set Operation
AT+TCPTO=<time ><CR>
+ok<CR><LF><CR><LF>
◼
Parameters:
◆
time: TCP timeout time.
<= 600, (600s);
>=0, (0 means no timeout);
Default, 300s;
Module begin to count time when TCP channel don
’t receive any data, clecherar time
counter when TCP channel receive any data. If the time counter reaches the TCPTO, the tcp
channel will be break. If the module work in TCP Client, it will connect the TCP server
instantly and when the module work in TCP Server, the TCP client device should make the
connection itself.
4.2.2.20.
AT+TCPDIS
◼
Function:
Open/Close SOCKA TCP link
;
◼
Format:
◆
Query Opera
AT+TCPDIS<CR>
+ok=<sta><CR><LF><CR><LF>
◆
Set Operation
AT+TCPDIS =<on/off><CR>
+ok<CR><LF><CR><LF>
◼
Parameters:
When query, sta.: Feedback if TCP Client can be link,
On, TCP link close
off,TCP link on
When setting, “off” means close TCP link. After finish this command, module disconnect TCP
link and not connect again. “On” means open TCP link. After finish this command, module re-
connect TCP server right away.
4.2.2.21.
AT+SEND
◼
Function:
Send Data to SOCKA at Command Mode
.
◼
Format:
AT+SEND=<data_lenth><CR>
+ok<CR><LF><CR><LF>