I really need some direction on this error.
Im getting this problem when building:
.pio/libdeps/esp32doit-devkit-v1/Arduino_ESP32_OTA/src/Arduino_ESP32_OTA.cpp:22:10: fatal error: Update.h: No such file or directory
Im trying to use ArduinoIotCloud library, and it requested the Arduino ESP32_OTA library too, so I installed the ESP32 OTA library and after that I had an error because the file update.h is needed in ESP32_OTA.cpp.
Its strange because if i read the Git of that library it uses an update.h file:
https://github.com/arduino-libraries/Arduino_ESP32_OTA/blob/main/src/Arduino_ESP32_OTA.cpp
But nowhere in there I can locate and update.h file
When i try to add it manually from:
https://github.com/espressif/arduino-esp32/blob/master/libraries/Update/src/Update
I got another error at build without too much information:
collect2.exe: error: ld returned 1 exit status
*** [.pio\build\esp32doit-devkit-v1\firmware.elf] Error 1
This is my ino file:
[env:esp32doit-devkit-v1]
platform = espressif32
board = esp32doit-devkit-v1
framework = arduino
lib_ignore = WiFiNINA
lib_deps =
arduino-libraries/ArduinoIoTCloud@^1.15.1
4-20ma/ModbusMaster@^2.0.1
arduino-libraries/ArduinoHttpClient@^0.6.0
arduino-libraries/Arduino_ESP32_OTA@^0.2.0
and files:
Thank you very much