Skip to content

Commit 4bb15fc

Browse files
committed
examples
1 parent e1462a1 commit 4bb15fc

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

examples/sendOnEvent/sendOnEvent.ino

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff 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);

examples/sendPhoto/sendPhoto.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,13 @@
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);

0 commit comments

Comments
 (0)