mode
means work mode
Table 6-12 work mode
Value
Meanings
0 Auto-work
mode
1 Command
mode
5.2.4.3
157B181B181B181B
AT+ATRM
Function
:
Set or query the message of the connection the module creates automatically in
auto-work mode.
Format
:
AT+ATRM=
[!?][protocol],[cs],[host_timeout],[port]
<CR>
+OK
[=protocol,cs,host,port]
<CR><LF><CR><LF>
Parameter
:
protocol
means protocol type
,
Table 6-13 protocol type
Value
Meanings
0 TCP
1 UDP
cs
means C/S mode
,
Table 6-14 CS mode
Value
Meanings
0 Client
1 Server
host_timeout
means that shown as follow,
Table 6-15 host_timeout
cs
protocol
Meanings
0
X
destination server name
,
you can input
domain name or IP address
,
for example:
"192.168.1.100"or "www.sina.com.cn"
1 0
TCP connection timeout period,the clients
that connect with the server send noting in
this effective period will be kicked out,
effective value range is 1~10000000,its Unit