Skip to content

Commit d82205e

Browse files
committed
found an adjacent misuse of setTimeout in httpUpdateSecure example
1 parent d84f1e7 commit d82205e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/HTTPUpdate/examples/httpUpdateSecure/httpUpdateSecure.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ void loop() {
9696
client.setCACert(rootCACertificate);
9797

9898
// Reading data over SSL may be slow, use an adequate timeout
99-
client.setTimeout(12000);
99+
client.setTimeout(12000 / 1000); // timeout argument is defined in seconds for setTimeout
100100

101101
// The line below is optional. It can be used to blink the LED on the board during flashing
102102
// The LED will be on during download of one buffer of data from the network. The LED will

0 commit comments

Comments
 (0)