File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
HTTPUpdate/examples/httpUpdateSecure Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -495,7 +495,7 @@ void HTTPClient::setTimeout(uint16_t timeout)
495
495
{
496
496
_tcpTimeout = timeout;
497
497
if (connected ()) {
498
- _client->setTimeout (( timeout + 500 ) / 1000 );
498
+ _client->setTimeout (timeout + 500 ); /* / 1000 removed, WifiClient setTimeout changed to ms */
499
499
}
500
500
}
501
501
@@ -1151,7 +1151,7 @@ bool HTTPClient::connect(void)
1151
1151
}
1152
1152
1153
1153
// set Timeout for WiFiClient and for Stream::readBytesUntil() and Stream::readStringUntil()
1154
- _client->setTimeout (( _tcpTimeout + 500 ) / 1000 );
1154
+ _client->setTimeout (_tcpTimeout + 500 ); /* / 1000 removed, WifiClient setTimeout changed to ms */
1155
1155
1156
1156
log_d (" connected to %s:%u" , _host.c_str (), _port);
1157
1157
Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ void loop() {
96
96
client.setCACert (rootCACertificate);
97
97
98
98
// Reading data over SSL may be slow, use an adequate timeout
99
- client.setTimeout (12000 / 1000 ); // timeout argument is defined in seconds for setTimeout
99
+ client.setTimeout (12000 ); // timeout argument is defined in miliseconds for setTimeout
100
100
101
101
// The line below is optional. It can be used to blink the LED on the board during flashing
102
102
// The LED will be on during download of one buffer of data from the network. The LED will
Original file line number Diff line number Diff line change @@ -312,7 +312,7 @@ void WebServer::handleClient() {
312
312
if (_parseRequest (_currentClient)) {
313
313
// because HTTP_MAX_SEND_WAIT is expressed in milliseconds,
314
314
// it must be divided by 1000
315
- _currentClient.setTimeout (HTTP_MAX_SEND_WAIT / 1000 );
315
+ _currentClient.setTimeout (HTTP_MAX_SEND_WAIT); /* / 1000 removed, WifiClient setTimeout changed to ms */
316
316
_contentLength = CONTENT_LENGTH_NOT_SET;
317
317
_handleRequest ();
318
318
You can’t perform that action at this time.
0 commit comments