|
1 | | -// Adafruit IO WipperSnapper Beta |
2 | | -// |
3 | | -// |
4 | | -// NOTE: This software is a BETA release and in active development. |
5 | | -// Please report bugs or errors to |
6 | | -// https://github.com/adafruit/Adafruit_Wippersnapper_Arduino/issues |
| 1 | +// Adafruit IO WipperSnapper |
7 | 2 | // |
8 | 3 | // This sketch is for devices which lack USB-MSD or LittleFS support such |
9 | | -// as the Arduino MKR WiFi 1010, Arduino Nano 33 IoT. |
| 4 | +// as the ESP32Dev for Wokwi Simulator |
10 | 5 | // |
11 | 6 | // Adafruit invests time and resources providing this open source code. |
12 | 7 | // Please support Adafruit and open source hardware by purchasing |
13 | 8 | // products from Adafruit! |
14 | 9 | // |
15 | | -// Brent Rubell for Adafruit Industries, 2021 |
| 10 | +// Brent Rubell for Adafruit Industries, 2025 |
16 | 11 | // |
17 | 12 | // All text above must be included in any redistribution. |
18 | 13 |
|
19 | | -#include "Wippersnapper_Networking.h" |
20 | | - |
| 14 | +#include "ws_adapters.h" |
| 15 | +#define WS_DEBUG // Enable debug output |
21 | 16 | /************************ Adafruit IO Config *******************************/ |
22 | 17 |
|
23 | 18 | // Visit io.adafruit.com if you need to create an account, |
24 | 19 | // or if you need your Adafruit IO key. |
25 | 20 | #define IO_USERNAME "YOUR_AIO_USERNAME" |
26 | 21 | #define IO_KEY "YOUR_AIO_KEY" |
27 | | - |
| 22 | +#define IO_URL "io.adafruit.com" |
| 23 | +#define IO_PORT 8883 |
28 | 24 | /**************************** WiFi Config ***********************************/ |
29 | 25 | #define WIFI_SSID "YOUR_WIFI_SSID" |
30 | 26 | #define WIFI_PASS "YOUR_WIFI_PASSWORD" |
31 | 27 |
|
32 | | -#include "Wippersnapper_Networking.h" |
33 | | -ws_adapter_wifi wipper(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS); |
| 28 | +ws_adapter_wifi wipper(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS, IO_URL, IO_PORT); |
34 | 29 |
|
35 | 30 | void setup() { |
36 | 31 | // Provisioning must occur prior to serial init. |
|
0 commit comments