I'm writing a TCP client application using a HL8518 module.
I successfully start the connection in command mode 'AT+KTCPCNX=1', so that it's easier to check if the socket is correctly connected.
The remote server immediately sends data when it gets connected.
So, the module is still in command mode, and when interrogating socket status, I receive the info the socket is up and some data are available in the buffer, like:
There the problem comes; I ask the data using:
and I just get a 'OK' back...
If I ask again the socket status, the RX buffer is now empty.
What's wrong there ?
Please note that I also disabled URC for +KTCP_DATA, as I want to decide when I want to retrieve the data!
Thank you for any help.