When i try to send message to server using TCP socket on esp 32 and when the host is unreachable program trying to connect to server for about 15 seconds when it tries to send message. I need to set that timeout from 15 second to 2-3 secs like in C#:
TcpClient client.ReceiveTimeout = 2000;.
Is there anyway to do that on ESP32?
P.S IT SHOULD BE LIKE THIS, server might be unreachable and i have to handle this event