File tree 2 files changed +2
-1
lines changed
ESP8266HTTPClient/examples/BasicHttpsClient
2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ void loop() {
46
46
client->setFingerprint (fingerprint_sni_cloudflaressl_com);
47
47
48
48
// date needs to be setup
49
+ configTime (" UTC" , " pool.ntp.org" );
49
50
time_t now;
50
51
while (time (&now) < 24 * 3600 ) {
51
52
Serial.println (" waiting for NTP time to be set..." );
Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ class WiFiClientSecure : public WiFiClient {
266
266
public:
267
267
268
268
WiFiClientSecure ():_ctx(new WiFiClientSecureCtx(this )) { _owned = _ctx.get (); }
269
- WiFiClientSecure (const WiFiClientSecure &rhs): _ctx(rhs._ctx), _userNegociationTimeout(rhs._userNegociationTimeout) {
269
+ WiFiClientSecure (const WiFiClientSecure &rhs): WiFiClient(), _ctx(rhs._ctx), _userNegociationTimeout(rhs._userNegociationTimeout) {
270
270
if (_ctx) { _owned = _ctx.get (); _ctx->setStream (this ); }
271
271
}
272
272
~WiFiClientSecure () override { _ctx = nullptr ; }
You can’t perform that action at this time.
0 commit comments