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

Commit

Permalink
Added setClock() instruction
Browse files Browse the repository at this point in the history
To ensure certificate validation, WiFiClientSecure needs time updated
  • Loading branch information
cotestatnt authored Mar 7, 2021
1 parent 8436735 commit 266d888
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/OTAupdate_ESP8266/OTAupdate_ESP8266.ino
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ void setup() {
delay(100);
}

// To ensure certificate validation, WiFiClientSecure needs time updated
// myBot.setInsecure(false);
myBot.setClock("CET-1CEST,M3.5.0,M10.5.0/3");

// Set the Telegram bot properies
myBot.setUpdateTime(1000);
myBot.setTelegramToken(token);
Expand Down

0 comments on commit 266d888

Please sign in to comment.