10 years, 8 months ago.

MBED as TCP Client - timeout problem while mbed tries to connect to server

Hello, I do have a problem using my mbed as tcp client with the official mbed ethernet library. When the ethernet of my mbed is disconnected from the server the mbed blocks for about 20 seconds my whole application while trying to connect to the server. I tried to used "set_blocking" which does not seem to have any effect. Any help how to set a timeout for connecting to the server is appreciated Uwe

Be the first to answer this question.