You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Forum issue with ESP32 BSP 3.1.0 no longer compiling with basic AdafruitIO_WiFi constructor being used. The previous ESP32 BSP 3.0.7 works fine.
I set the board to Feather ESP32 v2, but any ESP32 will likely show the same response.
minimum viable code (thx paolometeo):
#include <SPI.h>
#include <Wire.h>
#include <WiFiManager.h>
#include "AdafruitIO_WiFi.h"
#include <Preferences.h>
// Replace these with your actual Adafruit IO credentials and WiFi details
#define IO_USERNAME "your_username"
#define IO_KEY "your_aio_key"
#define WIFI_SSID "your_wifi_ssid"
#define WIFI_PASS "your_wifi_password"
// Initialize Adafruit IO with WiFi
AdafruitIO_WiFi io(IO_USERNAME, IO_KEY, WIFI_SSID, WIFI_PASS);
void setup(){}
void loop(){}
error message:
/Users/sklarm/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/wifi/AdafruitIO_ESP32.cpp: In constructor 'AdafruitIO_ESP32::AdafruitIO_ESP32(const char*, const char*, const char*, const char*)':
/Users/sklarm/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/wifi/AdafruitIO_ESP32.cpp:25:53: error: invalid new-expression of abstract class type 'HttpClient'
25 | _http = new HttpClient(*_client, _host, _http_port);
| ^
In file included from /Users/sklarm/Documents/Arduino/libraries/ArduinoHttpClient/src/ArduinoHttpClient.h:8,
from /Users/sklarm/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/AdafruitIO.h:27,
from /Users/sklarm/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/wifi/AdafruitIO_ESP32.h:20,
from /Users/sklarm/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/wifi/AdafruitIO_ESP32.cpp:16:
/Users/sklarm/Documents/Arduino/libraries/ArduinoHttpClient/src/HttpClient.h:41:7: note: because the following virtual functions are pure within 'HttpClient':
41 | class HttpClient : public Client
| ^~~~~~~~~~
In file included from /Users/sklarm/Library/Arduino15/packages/esp32/hardware/esp32/3.1.0/cores/esp32/Arduino.h:197,
from /Users/sklarm/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/AdafruitIO_Dashboard.h:19,
from /Users/sklarm/Documents/Arduino/libraries/Adafruit_IO_Arduino/src/AdafruitIO.h:19:
/Users/sklarm/Library/Arduino15/packages/esp32/hardware/esp32/3.1.0/cores/esp32/Client.h:29:15: note: 'virtual int Client::connect(IPAddress, uint16_t, int32_t)'
29 | virtual int connect(IPAddress ip, uint16_t port, int32_t timeout) = 0;
| ^~~~~~~
/Users/sklarm/Library/Arduino15/packages/esp32/hardware/esp32/3.1.0/cores/esp32/Client.h:31:15: note: 'virtual int Client::connect(const char*, uint16_t, int32_t)'
31 | virtual int connect(const char *host, uint16_t port, int32_t timeout) = 0;
| ^~~~~~~
Multiple libraries were found for "WiFi.h"
Used: /Users/sklarm/Library/Arduino15/packages/esp32/hardware/esp32/3.1.0/libraries/WiFi
Not used: /Users/sklarm/Documents/Arduino/libraries/WiFiNINA
Forum issue with ESP32 BSP 3.1.0 no longer compiling with basic AdafruitIO_WiFi constructor being used. The previous ESP32 BSP 3.0.7 works fine.
I set the board to Feather ESP32 v2, but any ESP32 will likely show the same response.
minimum viable code (thx paolometeo):
error message:
The text was updated successfully, but these errors were encountered: