GPRS
3-282 G24-L AT Commands Reference Manual April 15, 2008
+MIPCLOSE, Close a Socket
This command causes the G24-L to free the socket accumulating buffer and to close the socket.
Note: All data stored in the accumulating buffer will be lost. Refer to “+MIPSETS, Set Size for
Automatic Push” on page 3-283 and “+MIPPUSH, Push Data into Protocol Stack” on
page 3-285.
The following table shows the +MIPCLOSE parameters.
Example
AT+MIPCLOSE=1 //The terminal closes the opened socket
OK
AT+MIPCLOSE=2 //The terminal closes the socket that wasn't opened
ERROR
AT+MIPCLOSE? //Sockets 1 and 2 are opened
+MIPCLOSE: 1 2
AT+MIPCLOSE? //No opened sockets
+MIPCLOSE: 0
Command
Type Syntax Response/Action
Set +MIPCLOSE = <Socket ID> OK
+MIPCLOSE: <Socket ID>[,<
number_of_acknowledged_bytes >]
or:
ERROR
Read +MIPCLOSE? +MIPCLOSE 1234
+MIPCLOSE: [<socket ID>] - for all ACTIVE
sockets.
Test +MIPCLOSE=? +MIPCLOSE: (1-4)
OK
Table 3-198:+MIPCLOSE Parameters
<Parameter> Description
<Socket_ID> A unique number that identifies a connection.
Valid socket numbers - 1, 2, 3, 4
<number_of_acknowledged_bytes > Total number of bytes that were acknowledged.