Mipclose, close a socket, Mipclose, close a socket -282, Mipclose parameters -282 – PIONEERPOS AT Commands G24-LC User Manual
Page 346

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
“+MIPPUSH, Push Data into Protocol Stack” on
.
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 =
OK
+MIPCLOSE:
number_of_acknowledged_bytes >]
or:
ERROR
Read
+MIPCLOSE?
+MIPCLOSE 1234
+MIPCLOSE: [
sockets.
Test
+MIPCLOSE=?
+MIPCLOSE: (1-4)
OK
Table 3-198: +MIPCLOSE Parameters
Description
A unique number that identifies a connection.
Valid socket numbers - 1, 2, 3, 4
Total number of bytes that were acknowledged.