Skip to content

Commit d6a6af0

Browse files
author
brentru
committed
make setairliftpins a private function
1 parent e65f29d commit d6a6af0

File tree

5 files changed

+13
-15
lines changed

5 files changed

+13
-15
lines changed

examples/adafruitio_00_publish/config.h

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,23 @@
1313
// - Feather HUZZAH ESP32 -> https://www.adafruit.com/product/3405
1414
// - Feather M0 WiFi -> https://www.adafruit.com/products/3010
1515
// - Feather WICED -> https://www.adafruit.com/products/3056
16+
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
17+
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
18+
// - Adafruit AirLift Breakout -> https://www.adafruit.com/product/4201
1619

1720
#define WIFI_SSID "your_ssid"
1821
#define WIFI_PASS "your_pass"
1922

23+
// uncomment the following line for AirLift
24+
// #define USE_AIRLIFT
25+
26+
// uncomment the following line for WINC1500
27+
// #define USE_WINC1500
28+
2029
// comment out the following two lines if you are using fona or ethernet
2130
#include "AdafruitIO_WiFi.h"
2231
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
2332

24-
/******************************* AirLift **************************************/
25-
26-
// the AdafruitIO_AirLift client will work with the following boards:
27-
// - Adafruit PyPortal -> https://www.adafruit.com/product/4116
28-
// - Adafruit Metro M4 Express AirLift Lite -> https://www.adafruit.com/product/4000
29-
30-
// uncomment the following two lines for AirLift,
31-
// and comment out the AdafruitIO_WiFi client in the WIFI section
32-
// #include "AdafruitIO_AIRLIFT.h"
33-
// AdafruitIO_AIRLIFT io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
34-
3533
/******************************* FONA **************************************/
3634

3735
// the AdafruitIO_FONA client will work with the following boards:

src/AdafruitIO.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ AdafruitIO::AdafruitIO(const char *user, const char *key)
2727
_init();
2828
}
2929

30-
void AdafruitIO::setAirLiftPins(uint16_t ss, uint16_t ack, uint16_t rst)
30+
void AdafruitIO::_setAirLiftPins(uint16_t ss, uint16_t ack, uint16_t rst)
3131
{
3232
setAirLiftPins(ss, ack, rst);
3333
}

src/AdafruitIO.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class AdafruitIO {
6767

6868
protected:
6969
virtual void _connect() = 0;
70-
virtual void setAirLiftPins(uint16_t ss, uint16_t ack, uint16_t rst) = 0;
70+
virtual void _setAirLiftPins(uint16_t ss, uint16_t ack, uint16_t rst) = 0;
7171
aio_status_t _status = AIO_IDLE;
7272
uint32_t _last_ping = 0;
7373

src/AdafruitIO_AIRLIFT.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ class AdafruitIO_AIRLIFT : public AdafruitIO {
142142
ESP32 RESET pin.
143143
*/
144144
/**************************************************************************/
145-
void setAirLiftPins(uint16_t ss, uint16_t ack, uint16_t rst)
145+
void _setAirLiftPins(uint16_t ss, uint16_t ack, uint16_t rst)
146146
{
147147
_ssPin = ss;
148148
_ackPin = ack;

src/AdafruitIO_WiFi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
#elif defined(ADAFRUIT_METRO_M4_AIRLIFT_LITE) || defined(ADAFRUIT_PYPORTAL) || defined(USE_AIRLIFT)
2121

22-
#include "AdafruitIO_AIRLIFT.h"
22+
#include "wifi/AdafruitIO_AIRLIFT.h"
2323
typedef AdafruitIO_AIRLIFT AdafruitIO_WiFi;
2424

2525
#elif defined(USE_WINC1500)

0 commit comments

Comments
 (0)