arduino-libraries / ArduinoIoTCloud

Home Page:https://app.arduino.cc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Version 1.10.0 - Error in OTA.h

mhavill opened this issue · comments

I have raised this in https://community.platformio.org/t/arduinoiotcloud-update-error/32899 as I use PlatformIO as my IDE, but I think it belongs here?

Board - ESP32-Wrover Devkitc

Experienced the problem in my own project but I can reproduce in the AtduinoIoTCloud-Basic sketch also. On building I get
.pio/libdeps/az-delivery-devkit-v4/ArduinoIoTCloud/src/utility/ota/OTA.h:65:36: error: ‘NetworkAdapter’ has not been declared

Reverting to 1.9.0 builds without error

Hi @mhavill. Thanks for your report. Which version of the Arduino_ConnectionHandler library dependency are you using?

Dependency graph shows Arduino_ConnectionHandler @ 0.6.6

|-- ArduinoIoTCloud @ 1.11.0
| |-- Arduino_ConnectionHandler @ 0.6.6
| | |-- WiFi @ 2.0.0
| | |-- Arduino_DebugUtils @ 1.4.0
| |-- WiFi @ 2.0.0
| |-- Arduino_DebugUtils @ 1.4.0
| |-- WiFiClientSecure @ 2.0.0
| | |-- WiFi @ 2.0.0
| |-- ArduinoMqttClient @ 0.1.7
|-- Arduino_ConnectionHandler @ 0.6.6
| |-- WiFi @ 2.0.0
| |-- Arduino_DebugUtils @ 1.4.0

OK, that is the problem. You are using an outdated version of the Arduino_ConnectionHandler library depdendency from before this change:

arduino-libraries/Arduino_ConnectionHandler@37758d3

Please update to the latest version of the Arduino_ConnectionHandler library depdendency

Thank you for your rapid response and help!