File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,9 +40,6 @@ void setup() {
4040 // initialize the Serial
4141 Serial.begin (115200 );
4242
43- WiFi.setAutoConnect (true );
44- WiFi.mode (WIFI_STA );
45-
4643 // connects to the access point
4744 WiFi.begin (ssid, pass);
4845 delay (500 );
Original file line number Diff line number Diff line change 2828
2929#ifdef ESP8266
3030 #include < ESP8266WiFi.h>
31+ #include < WiFiClientSecure.h>
3132 WiFiClientSecure client;
3233 Session session;
3334 X509List certificate (telegram_cert);
3435#elif defined(ESP32)
36+ #include < WiFi.h>
37+ #include < WiFiClientSecure.h>
3538 #if USE_CLIENTSSL
3639 #include < SSLClient.h> // https://github.com/OPEnSLab-OSU/SSLClient/
3740 #include " tg_certificate.h"
@@ -66,9 +69,6 @@ void setup() {
6669 // initialize the Serial
6770 Serial.begin (115200 );
6871
69- WiFi.setAutoConnect (true );
70- WiFi.mode (WIFI_STA );
71-
7272 // connects to access point
7373 WiFi.begin (ssid, pass);
7474 delay (500 );
You can’t perform that action at this time.
0 commit comments