HF-LPC3X0 Series Wi-Fi&BLE User Manual
Shanghai High-Flying Electronics Technology Co., Ltd(www.hi-flying.com)
- 51 -
◼
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 SOCKA. If the interval of two bytes is more than 10ms, the data will be
sent instantly.
4.2.2.22.
AT+RECV
◼
Function: Receive Data from SOCKA at Command Mode.
◼
Format:
AT+RECV=<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.
If not receive any data in 3 second, then feok=0.
4.2.2.23.
AT+SOCKB
◼
Function: Set/Query SOCKB parameters. Setting is valid immediately.
◼
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>
◼
Parameters:
◆
Protocol: Protocol type:
TCP: Only for TCP Client
UDP: UDP Client
UDPS: UDP Server
◆
Port: Protocol Port in decimal, less than 65535
◆
IP: Destination IP address, domain name is support
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.24.
AT+TCPDISB
◼
Function: Open/Close SOCKB connection
◼
Format:
◆
Query Operation
AT+TCPDISB<CR>