2017-10-19 06:03 AM
Hello! I cant close socket client be command AT+S.SOCKC - “ERROR: Pending data� is raised'. According to UM1695 it should be flushing pending data (using the AT+S.READ command) is mandatory before closing the socket connection (AT+S.SOCKC). If the buffer is not erased, the “ERROR: Pending data� is raised. . I cant find description
AT+S.READ. How can I do that properly?
AT+S.READ
ERROR: Command not found
AT+S.SOCKC=00
ERROR: Pending data
Solved! Go to Solution.
2017-10-19 12:20 PM
AT+S.SOCKQ returns the number of bytes of data waiting on socket specified by socket ID argument.
In your case:
AT+S.SOCKQ=00
DATALEN: xxx
2017-10-19 08:27 AM
There is a typo in the UM, any occurrence of AT+S.READ must be substituted with AT+S.SOCKR
2017-10-19 10:15 AM
Thank you for the response. And how can I know exactly data length?
2017-10-19 12:20 PM
AT+S.SOCKQ returns the number of bytes of data waiting on socket specified by socket ID argument.
In your case:
AT+S.SOCKQ=00
DATALEN: xxx