How to read the ACK in TCP Cleint-Server application?

aatifshaikh66
Posts: 4
Joined: Wed Oct 07, 2020 10:42 am

How to read the ACK in TCP Cleint-Server application?

Postby aatifshaikh66 » Thu Dec 24, 2020 12:30 pm

Hello,
I'm working on a project in which I'm using the ESP32-WROOM-32U module. I've developed a TCP Client-Server based application, in which my device is acting as a TCP client and connecting to a central server. I'm developing my code with the help of Arduino IDe. Right now, I'm sending some data to the central server using the defined function TCPClient.write( ucTCPBuffer, uiTCPBufferLen);. I wanted to know how can I read the TCP acknowledgement after sending the data, so that, I can always ensure whether my data is successfully being transmitted to the central server. Is there a function like "TCPClient.Readacknowledgement( );?

Note* the function and variable definition are given below:
1. WiFiClient TCPClient.
2. char ucTCPBuffer[(uint8_t)250];
3. uint16_t uiTCPBufferLen;

Who is online

Users browsing this forum: No registered users and 70 guests