USR-DR504-E User Manual
Jinan USR IOT Technology Limited
Tech Support: h.usriot.com
44
AT+SOCKA=protocol,address,port{CR}
{CR}{LF}OK{CR}{LF}
Parameters:
protocol: Connection Type , including:
TCPS: TCP Server
TCPC: TCP Client
UDPC: UDP Client
Default is TCPC.
address: Server address. This address can be a domain name or IP. The default is test. usr. cn. It is invalid
under TCPS. Can set any domain name or IP. It is not allowed to be empty.
port: Server port, range 1~65535, default 2317, local port in TCPS mode
E. g: AT+SOCKA=TCPC,test. usr. cn,8899.
28. AT+SOCKB
Function: Query/Setting the parameters of socket B.
Function: Query/Setting the parameters of socket B.
Format:
Query current parameter:
AT+SOCKB{CR} or AT+SOCKB?{CR}
{CR}{LF}+SOCKB:protocol,address,port{CR}{LF}{CR}{LF}
Setting:
AT+SOCKB=protocol,address,port{CR}
{CR}{LF}OK{CR}{LF}
Parameters:
protocol: protocol, including:
TCPC: TCP Client
UDPC: UDP Client
Default TCPC.
address: Server address, this address can be domain name or IP, maximum support 100 bytes, the default is
test. usr. cn.
port: Server port, range 1~65535, default 2317
E. g: AT+SOCKB=TCPC,test. usr. cn,2317
29. AT+SOCKAEN
Function: Query/Setting whether to enable socket A
Format:
Query current Parameter:
AT+SOCKAEN{CR} or AT+SOCKAEN?{CR}
{CR}{LF}+SOCKAEN:status{CR}{LF}{CR}{LF}
Setting:
AT+SOCKAEN=status{CR}