|
| 1 | +/************************ Adafruit IO Config *******************************/ |
| 2 | + |
| 3 | +// visit io.adafruit.com if you need to create an account, |
| 4 | +// or if you need your Adafruit IO key. |
| 5 | +#define IO_USERNAME "your_username" |
| 6 | +#define IO_KEY "your_key" |
| 7 | + |
| 8 | +/******************************* WIFI **************************************/ |
| 9 | + |
| 10 | +// the AdafruitIO_WiFi client will work with the following boards: |
| 11 | +// - HUZZAH ESP8266 Breakout -> https://www.adafruit.com/products/2471 |
| 12 | +// - Feather HUZZAH ESP8266 -> https://www.adafruit.com/products/2821 |
| 13 | +// - Feather M0 WiFi -> https://www.adafruit.com/products/3010 |
| 14 | +// - Feather WICED -> https://www.adafruit.com/products/3056 |
| 15 | + |
| 16 | +#define WIFI_SSID "your_ssid" |
| 17 | +#define WIFI_PASS "your_pass" |
| 18 | + |
| 19 | +// comment out the following two lines if you are using fona or ethernet |
| 20 | +#include "AdafruitIO_WiFi.h" |
| 21 | +AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS); |
| 22 | + |
| 23 | + |
| 24 | +/******************************* FONA **************************************/ |
| 25 | + |
| 26 | +// the AdafruitIO_FONA client will work with the following boards: |
| 27 | +// - Feather 32u4 FONA -> https://www.adafruit.com/product/3027 |
| 28 | + |
| 29 | +// uncomment the following two lines for 32u4 FONA, |
| 30 | +// and comment out the AdafruitIO_WiFi client in the WIFI section |
| 31 | +// #include "AdafruitIO_FONA.h" |
| 32 | +// AdafruitIO_FONA io(IO_USERNAME, IO_KEY); |
| 33 | + |
| 34 | + |
| 35 | +/**************************** ETHERNET ************************************/ |
| 36 | + |
| 37 | +// the AdafruitIO_Ethernet client will work with the following boards: |
| 38 | +// - Ethernet FeatherWing -> https://www.adafruit.com/products/3201 |
| 39 | + |
| 40 | +// uncomment the following two lines for ethernet, |
| 41 | +// and comment out the AdafruitIO_WiFi client in the WIFI section |
| 42 | +// #include "AdafruitIO_Ethernet.h" |
| 43 | +// AdafruitIO_Ethernet io(IO_USERNAME, IO_KEY); |
0 commit comments