arduino-libraries / ArduinoIoTCloud

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OTA-esp32.cpp:125:29: error: 'isCapable' is not a member of 'Arduino_ESP32_OTA'

mhavill opened this issue · comments

I am using an ESP32 WROVER with ArduinoIOTCloud.
I am rebuilding software which was compiling and running fine but now is failing with the following error

Compiling .pio\build\LonelyB-ESP32Wrover\liba5e\ArduinoIoTCloud\utility\ota\OTA-esp32.cpp.o
.pio/libdeps/LonelyB-ESP32Wrover/ArduinoIoTCloud/src/utility/ota/OTA-esp32.cpp: In function 'bool esp32_isOTACapable()':
.pio/libdeps/LonelyB-ESP32Wrover/ArduinoIoTCloud/src/utility/ota/OTA-esp32.cpp:125:29: error: 'isCapable' is not a member of 'Arduino_ESP32_OTA'
   return Arduino_ESP32_OTA::isCapable();
                             ^~~~~~~~~
*** [.pio\build\LonelyB-ESP32Wrover\liba5e\ArduinoIoTCloud\utility\ota\OTA-esp32.cpp.o] Error 1

I can work around it simply by returning true

bool esp32_isOTACapable()
{
  // return Arduino_ESP32_OTA::isCapable();
  return true; 
}

Version of OTA downloading is Arduino_ESP32_OTA @ 0.1.1

Hi @mhavill you need to update to the latest Arduino_ESP32_OTA @ 0.2.0