LPWA  Module  Series 
   BG95&BG77&BG600L  Series  TCP/IP  Application  Note 
BG95&BG77&BG600L_Series_TCP/IP_Application_Note            42 / 56 
 
 
 
 
3.3.3.  Receive Data from Remote Server in Buffer Access Mode 
 
3.3.4.  Close a Connection 
 
                  successfully. The host can query whether the data has reached the 
                  server with AT+QISEND=0,0. 
AT+QISEND=0,4                                  //Send fixed-length data and the data length is 4 bytes. 
>test 
SEND OK 
AT+QISEND=0,0                              //Query  the  length  of  sent  data,  acknowledged  data  and                         
                unacknowledged data. 
+QISEND: 9,9,0          //A total of 9 bytes data has  been sent, and  the 9-byte data has         
                been acknowledged by the server. 
 
OK 
AT+QISENDEX=0,"3132333435"   //Send Hex string data. 
SEND OK 
AT+QISEND=0,0                              //Query  the  length  of  sent  data,  acknowledged  data  and                         
                unacknowledged data. 
+QISEND: 14,14,0 
 
OK 
+QIURC: "recv",0           //<connectID> 0 has received data. 
AT+QIRD=0,1500              //Retrieve the data. The maximum length of data to be retrieved is 1500 bytes. 
+QIRD: 5                            //The length of actually retrieved data is 5 bytes.   
test1 
 
OK 
AT+QIRD=0,1500                 
+QIRD: 0                              //No data in buffer.   
 
OK 
AT+QIRD=0,0                      //Query the total length of received data, including read and unread data.   
+QIRD: 5,5,0 
 
OK 
AT+QICLOSE=0                          //Close  a  connection  whose  <connectID>  is  0.  Depending  on  the 
network, the maximum response time is 10 seconds. 
OK