mirror of
https://github.com/arduino-libraries/ArduinoHttpClient.git
synced 2025-04-19 21:22:15 +03:00
Replace delay constant by variable
This commit is contained in:
parent
9b3987ca7f
commit
c490dde1f1
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user