Hello,
is there a possibility to change the timeout time of a request to a webserver ?
currently it took 30s to realize that the webserver is not available.
Thanks
client.setConnectionTimeout();
does not exist so I tried
client.setTimeout();
or instead of
client.setTimeout();
I tried
http.setTimeout();
unfortuantely this proposal does not change the timeout behavior
here is the part of the code- hope this makes it more clear
WiFiClient client;
HTTPClient http;
...
http.setTimeout(5000);
client.setTimeout(5000);
if (http.begin(client, buffer)) { /
int httpCode = http.GET(); // start connection and send HTTP header
if (httpCode > 0) {
...
```}
and what WiFi library and what HttpClient library is it?
I'm working with a ESP32 ( Wifi Kit 32)
then use only http.setTimeout(5000);
they messed up and client.setTimeout(5000); is in seconds. (and it shouldn't be connection timeout, but blocking read timeout)
thanks Juraj for your support. Still the timeout is always 30 s whatever I put in like:
http.setTimeout(10):
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.