Skip to content

Commit

Permalink
Arduino ESP8266: skip NTP time check for secured connection when
Browse files Browse the repository at this point in the history
Supla::Clock was already initialized earlier
  • Loading branch information
klew committed Nov 23, 2023
1 parent 53f53f6 commit 09df1d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/supla/arduino_esp_platform.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
#include <supla/log_wrapper.h>
#include <WiFiClient.h>
#include <WiFiClientSecure.h>
#include <supla/clock/clock.h>

#include "tools.h"
#include "supla/network/client.h"
Expand Down Expand Up @@ -82,7 +83,7 @@ class ArduinoEspClient : public Client {
clientSec->setBufferSizes(1024, 512); // EXPERIMENTAL
if (rootCACert) {
// Set time via NTP, as required for x.509 validation
static bool timeConfigured = false;
static bool timeConfigured = Supla::Clock::isReady();

if (!timeConfigured) {
timeConfigured = true;
Expand Down

0 comments on commit 09df1d3

Please sign in to comment.