LPWA Module Series
BG96 TCP/IP Application Note
BG96_TCP/IP_Application_Note 16 / 52
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.
Parameter
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+QICLOSE Close a Socket Service
Test Command
AT+QICLOSE=?
Response
+QICLOSE: (range of supported <connectID>s),( range of
supported <timeout>s)
OK
Write Command
AT+QICLOSE=<connectID>[,<timeout
>]
Response
If the socket service is closed successfully:
OK
If failed to close:
ERROR
<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.
AT+QISTATE Query Socket Service Status
Test Command
AT+QISTATE=?
Read/Execution Command
AT+QISTATE? or AT+QISTATE
Response
Return the status of all existing connections:
+QISTATE: <connectID>,<service_type>,<IP_address>,<r