Skip to content

Commit 3034c2b

Browse files
committed
update winc1500 to new constructor format
1 parent 056f215 commit 3034c2b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

AdafruitIO_WINC1500.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111

1212
Adafruit_WINC1500 WiFi(WINC_CS, WINC_IRQ, WINC_RST);
1313

14-
AdafruitIO_WINC1500::AdafruitIO_WINC1500(const char *ssid, const char *pass):AdafruitIO()
14+
AdafruitIO_WINC1500::AdafruitIO_WINC1500(const char *user, const char *key, const char *ssid, const char *pass):AdafruitIO(user, key)
1515
{
1616
_ssid = ssid;
1717
_pass = pass;
1818
_client = new Adafruit_WINC1500SSLClient;
1919
_mqtt = new Adafruit_MQTT_Client(_client, _host, _port);
2020
}
2121

22-
AdafruitIO_WINC1500::AdafruitIO_WINC1500(const __FlashStringHelper *ssid, const __FlashStringHelper *pass):AdafruitIO()
22+
AdafruitIO_WINC1500::AdafruitIO_WINC1500(const __FlashStringHelper *user, const __FlashStringHelper *key, const __FlashStringHelper *ssid, const __FlashStringHelper *pass):AdafruitIO(user, key)
2323
{
2424
_ssid = (const char*)ssid;
2525
_pass = (const char*)pass;

AdafruitIO_WINC1500.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
class AdafruitIO_WINC1500 : public AdafruitIO {
2626

2727
public:
28-
AdafruitIO_WINC1500(const char *ssid, const char *pass);
29-
AdafruitIO_WINC1500(const __FlashStringHelper *ssid, const __FlashStringHelper *pass);
28+
AdafruitIO_WINC1500(const char *user, const char *key, const char *ssid, const char *pass);
29+
AdafruitIO_WINC1500(const __FlashStringHelper *user, const __FlashStringHelper *key, const __FlashStringHelper *ssid, const __FlashStringHelper *pass);
3030
~AdafruitIO_WINC1500();
3131

3232
aio_status_t networkStatus();

AdafruitIO_WiFi.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
class AdafruitIO_WiFi: public AdafruitIO_WINC1500 {
1616

1717
public:
18-
AdafruitIO_WiFi(const char *ssid, const char *pass) :
19-
AdafruitIO_WINC1500(ssid, pass) {}
20-
AdafruitIO_WiFi(const __FlashStringHelper *ssid, const __FlashStringHelper *pass) :
21-
AdafruitIO_WINC1500(ssid, pass) {}
18+
AdafruitIO_WiFi(const char *user, const char *key, const char *ssid, const char *pass) :
19+
AdafruitIO_WINC1500(user, key, ssid, pass) {}
20+
AdafruitIO_WiFi(const __FlashStringHelper *user, const __FlashStringHelper *key, const __FlashStringHelper *ssid, const __FlashStringHelper *pass) :
21+
AdafruitIO_WINC1500(user, key, ssid, pass) {}
2222

2323
};
2424

0 commit comments

Comments
 (0)