You've already forked ArduinoHttpClient
mirror of
https://github.com/arduino-libraries/ArduinoHttpClient.git
synced 2025-07-05 04:01:10 +03:00
Replace delay constant by variable
This commit is contained in:
@ -40,6 +40,7 @@ void HttpClient::resetState()
|
||||
iIsChunked = false;
|
||||
iChunkLength = 0;
|
||||
iHttpResponseTimeout = kHttpResponseTimeout;
|
||||
iHttpWaitForDataDelay = kHttpWaitForDataDelay;
|
||||
}
|
||||
|
||||
void HttpClient::stop()
|
||||
@ -473,7 +474,7 @@ int HttpClient::responseStatusCode()
|
||||
{
|
||||
// We haven't got any data, so let's pause to allow some to
|
||||
// arrive
|
||||
delay(kHttpWaitForDataDelay);
|
||||
delay(iHttpWaitForDataDelay);
|
||||
}
|
||||
}
|
||||
if ( (c == '\n') && (iStatusCode < 200 && iStatusCode != 101) )
|
||||
@ -522,7 +523,7 @@ int HttpClient::skipResponseHeaders()
|
||||
{
|
||||
// We haven't got any data, so let's pause to allow some to
|
||||
// arrive
|
||||
delay(kHttpWaitForDataDelay);
|
||||
delay(iHttpWaitForDataDelay);
|
||||
}
|
||||
}
|
||||
if (endOfHeadersReached())
|
||||
|
Reference in New Issue
Block a user