Skip to content
This repository was archived by the owner on Jan 16, 2022. It is now read-only.

Commit 266d888

Browse files
authored
Added setClock() instruction
To ensure certificate validation, WiFiClientSecure needs time updated
1 parent 8436735 commit 266d888

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/OTAupdate_ESP8266/OTAupdate_ESP8266.ino

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ void setup() {
4141
delay(100);
4242
}
4343

44+
// To ensure certificate validation, WiFiClientSecure needs time updated
45+
// myBot.setInsecure(false);
46+
myBot.setClock("CET-1CEST,M3.5.0,M10.5.0/3");
47+
4448
// Set the Telegram bot properies
4549
myBot.setUpdateTime(1000);
4650
myBot.setTelegramToken(token);

0 commit comments

Comments
 (0)