Operation Guide
© 2022 Shanghai RaymonIoT Technology Co., Ltd.
X-C13SG_REV1.6_Operation Guide
X-C13SG
Shanghai RaymonIoT Technology Co., Ltd.
31
AT+SOCKADISB<CR>
+ok=<sta><CR><LF><CR><LF>
Set Operation:
AT+SOCKADISB=<sta[,opt]><CR>
+ok<CR><LF><CR><LF>
Parameters:
sta: Response with SOCKB TCP client connection setting status,
on, Allow TCP client connection, default value
off, Forbidden or break TCP Client connection
opt: function code, save to flash or not, option parameter. if not fill in, default is 0..
0: setting not saved to flash
1: setting saved to flash
When setting, “off” means close TCP client 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 set opt to 0, the setting won’t saved to flash, module AT+SOCKADISB is on by default, if set opt to 1,
setting saved to flash, AT+TCPDISB status depends on prevous setting
1.3.3.59. AT+SOCKBTO
Function: Set/Query Operation SOCKB TCP timeout. Setting is valid after reset.
Format:
Query Operation:
AT+SOCKATOB<CR>
+ok=<time><CR><LF><CR><LF>
Set Operation:
AT+SOCKATOB=<time ><CR>
+ok<CR><LF><CR><LF>
Parameters:
Time: TCP timeout.
<= 600: 600s
>=0: 0 means no timeout
Default: 300s
If the SOCKB TCP don't receive any data from TCP server for TCP tmeout setting, the module will break and
reconnect the TCP server. If it receive data from server, the timeout counter will be clear.
1.3.3.60. AT+SOCKBLK
Function: Query SOCKB connection status.
Format:
AT+SOCKALKB<CR>
+ok=<sta><CR><LF><CR><LF>
Parameters:
sta.: SOCKB connection status
on: TCP connected
off: TCP disconnected
1.3.3.61. AT+SOCKBSEND
Function: Send datas to SOCKB at Command Mode
Format:
AT+SOCKBSEND=<data_lenth><CR>