Skip to content

Commit 46ae118

Browse files
committed
remove fingerprint check
1 parent f6d762f commit 46ae118

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/wifi/AdafruitIO_ESP8266.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ AdafruitIO_ESP8266::AdafruitIO_ESP8266(const char *user, const char *key,
2121
: AdafruitIO(user, key) {
2222
_ssid = ssid;
2323
_pass = pass;
24-
_client = new WiFiClientSecure;
25-
_client->setFingerprint(AIO_SSL_FINGERPRINT);
26-
_mqtt = new Adafruit_MQTT_Client(_client, _host, _mqtt_port);
24+
_client = new WiFiClient;
25+
_mqtt = new Adafruit_MQTT_Client(_client, _host, 1883);
2726
_http = new HttpClient(*_client, _host, _http_port);
2827
}
2928

src/wifi/AdafruitIO_ESP8266.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#include "Adafruit_MQTT_Client.h"
2323
#include "Arduino.h"
2424
#include "ESP8266WiFi.h"
25-
#include "WiFiClientSecure.h"
2625

2726
class AdafruitIO_ESP8266 : public AdafruitIO {
2827

@@ -40,7 +39,7 @@ class AdafruitIO_ESP8266 : public AdafruitIO {
4039

4140
const char *_ssid;
4241
const char *_pass;
43-
WiFiClientSecure *_client;
42+
WiFiClient *_client;
4443
};
4544

4645
#endif // ESP8266

0 commit comments

Comments
 (0)