2.2.5. AT+QICLOSE Close a Socket Service
The Write Command closes a specified socket service. Depending on the network, it will take at most 10
seconds (default value, can be configured by <timeout>) to return OK or ERROR after executing
AT+QICLOSE. Before the response is returned, other AT commands cannot be executed.
AT+QICLOSE Close a Socket Service
Test Command
AT+QICLOSE=?
Write Command
AT+QICLOSE=<connectID>[,<timeout
>]
Maximum Response Time
Characteristics
Parameter
<connectID>
Integer type. Socket service index. Range: 0–11.
<timeout>
Integer type. If the FIN ACK of the other peers is not received within <timeout>, the
module will force to close the socket. Range: 0-65535. Default value: 10. Unit: second.
2.2.6. AT+QISTATE Query Socket Service Status
The Write Command queries the socket service status. If <query_type>=0, it will return the status of all
existing socket services in the specified context. If <query_type>=1, it will return the status of a specified
socket service.
AT+QISTATE Query Socket Service Status
Test Command
AT+QISTATE=?
Read/Execution Command
AT+QISTATE? or AT+QISTATE
BG96_TCP/IP_Application_Note
Response
+QICLOSE: (range of supported <connectID>s),( range of
supported <timeout>s)
OK
Response
If the socket service is closed successfully:
OK
If failed to close:
ERROR
120 s
/
Response
OK
Response
Return the status of all existing connections:
+QISTATE: <connectID>,<service_type>,<IP_address>,<r
LPWA Module Series
BG96 TCP/IP Application Note
16 / 52
Need help?
Do you have a question about the BG96 TCP/IP and is the answer not in the manual?
Questions and answers