esp8266-wiki icon indicating copy to clipboard operation
esp8266-wiki copied to clipboard

How to set timeouts for WiFiClient::printf()

Open dalbert2 opened this issue 5 years ago • 0 comments

Is there an example of how to send a WiFiClient::printf() (e.g. for an HTTP GET) and have it timeout if either the connection closes or the peer doesn't respond within some time?)

I regularly have cases where the printf() does not return for 10s or longer.

dalbert2 avatar Feb 18 '20 22:02 dalbert2