HF-LPC100 Wi-Fi/Bluetooth Module User Manual
Shanghai High-Flying Electronics Technology Co., Ltd
www.hi-flying.com
- 37
-
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. If user didn't save the command, after reset, module will
open TCP by default.
3.2.2.28.
AT+SOCKB
function: set/query SOCKB parameter, setting is valid after reset:
Format
Query operation
AT+SOCKB<CR>
+ok=<protocol,port,IP><CR><LF><CR><LF>
Set operation
AT+SOCKB=<protocol,port,IP><CR>
+ok<CR><LF><CR><LF>
Parameter
Protocol
:
protocol type ,includes
TCP
,
only means TCP Client
UDP
,
UDP client
UDPS
,
UDP server
Port:
:
protocol port, decimal digital, less than 65535
IP
:
target IP address, support domain name
If set as UDP SERVER, the module will save the IP address and port of the latest UDP
packet received and send data to the saved IP address and port. When module under
initialization status, it will send data to this IP address and port set by the command.
3.2.2.29.
AT+TCPDISB
Function: open/close SOCKB connection
Format
Query operation
AT+TCPDISB<CR>
+ok=<sta><CR><LF><CR><LF>
Set operation
AT+TCPDISB =<on/off><CR>
+ok<CR><LF><CR><LF>
Parameter
When setting, ―off‖ means close TCP link. After finish this command, module disconnect TCP link
and not conn
ect again. ―On‖ means open TCP link. After finish this command, module re-connect
TCP server right away. If user didn't save the command, after reset, module will open SOCKB by
default.
High-Flying