![USR IOT USR-TCP232-T2 User Manual Download Page 58](http://html.mh-extra.com/html/usr-iot/usr-tcp232-t2/usr-tcp232-t2_user-manual_1064533058.webp)
USR-TCP232-T2 user manual
Jinan USR IOT Technology Limited
58
AT+SOCK=< protocol,IP,port ><CR>
<CR><LF>+OK<CR><LF>
Parameters:
Protocol: protocol type, including
TCPS is TCP server
TCPC is TCP client
UDPS is UDP server
UDPC is UDP client
HTPC is Httpd Client
IP: when the module setting into “CLIENT”mode, the IP address and domain name of the
remote server.
Port: local port under Server mode and remote port under Client mode,decimal number and
less than 65535.
E.g.: AT+SOCK=TCPC,192.168.0.201,8234
5.3.4.14. AT+TCPSE
Function: module is TCP Server, the processing mechanism after the connection reaches the maximum number of
connections.
Format: query:
AT+TCPSE<CR>
<CR><LF>+OK=< status ><CR><LF>
setting:
AT+TCPSE=< status ><CR>
<CR><LF>+OK<CR><LF>
Parameters:
Status: setting status keep/kick
keep: after reach the maximum number of connection, do not receive new one.
kick: after reach the maximum number of connection, delete the order one and
connect the new one.
E.g.: AT+TCPSE=keep
5.3.4.15. AT+SOCKLK
Function: query whether the TCP has connected
Format: query:
AT+ SOCKLK<CR>
<CR><LF>+OK=< sta ><CR><LF>
Parameters:
Sta: built the TCP connection or not
Connect: TCP connected
Disconnect: TCP not connected
5.3.4.16. AT+SOCKPORT
Function: setting /query local socket port