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:
AT+KTCPSTAT=1
+KTCPSTAT: 3,-1,0,32

There the problem comes; I ask the data using:
AT+KTCPRCV=1,32
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!