1313
1414#include " AdafruitIO_WINC1500.h"
1515
16- Adafruit_WINC1500 WiFi (WINC_CS, WINC_IRQ, WINC_RST);
1716
1817AdafruitIO_WINC1500::AdafruitIO_WINC1500 (const char *user, const char *key, const char *ssid, const char *pass):AdafruitIO(user, key)
1918{
2019 _ssid = ssid;
2120 _pass = pass;
22- _client = new Adafruit_WINC1500SSLClient ;
21+ _client = new WiFiSSLClient ;
2322 _mqtt = new Adafruit_MQTT_Client (_client, _host, _port);
2423}
2524
2625AdafruitIO_WINC1500::AdafruitIO_WINC1500 (const __FlashStringHelper *user, const __FlashStringHelper *key, const __FlashStringHelper *ssid, const __FlashStringHelper *pass):AdafruitIO(user, key)
2726{
2827 _ssid = (const char *)ssid;
2928 _pass = (const char *)pass;
30- _client = new Adafruit_WINC1500SSLClient ;
29+ _client = new WiFiSSLClient ;
3130 _mqtt = new Adafruit_MQTT_Client (_client, _host, _port);
3231}
3332
@@ -42,9 +41,7 @@ AdafruitIO_WINC1500::~AdafruitIO_WINC1500()
4241void AdafruitIO_WINC1500::_connect ()
4342{
4443
45- pinMode (WINC_EN, OUTPUT);
46- digitalWrite (WINC_EN, HIGH);
47- delay (100 );
44+ WiFi.setPins (WINC_CS, WINC_IRQ, WINC_RST, WINC_EN);
4845
4946 // no shield? bail
5047 if (WiFi.status () == WL_NO_SHIELD)
0 commit comments