LPWA Module Series
BG95&BG77&BG600L Series TCP/IP Application Note
BG95&BG77&BG600L_Series_TCP/IP_Application_Note 44 / 56
3.5.2. Send Data in Direct Push Mode
3.5.3. Retrieve Data from Remote Server in Direct Push Mode
3.5.4. Close a TCP Client
+QIOPEN: 0,0 //TCP client connected successfully. It is suggested to wait for 150
seconds for the URC +QIOPEN: <connectID>,<result>. If the URC
cannot be received in 150 seconds, the host could use AT+QICLOSE to
close the socket.
AT+QISTATE=1,0 //Query the connection state of socket service 0.
+QISTATE: 0,"TCP","220.180.239.212",8009,65344,2,1,0,1,"usbmodem"
OK
AT+QISEND=0 //Send variable-length data.
>test1<Ctrl+Z>
SEND OK //SEND OK does not mean the data has been sent to the server successfully. The
host can query whether the data has reached the server with AT+QISEND=0,0.
AT+QISEND=0,5 //Send fixed-length data and the data length is 5 bytes.
>test2
SEND OK
AT+QISEND=0,0 //Query the length of sent data, acknowledged data and unacknowledged data.
+QISEND: 10,10,0 //A total of 10 bytes data has been sent, and all the 10-byte data has been
acknowledged.
OK
+QIURC: "recv",0,4 //Retrieve data from remote server.
test
AT+QICLOSE=0 //Close the connection whose <connectID> is 0. Depending on the
network, the maximum response time is 10 seconds.
OK