ACIoT build and flash error today Dec 13, 2024

Hi.

Following the steps I have received to connect my Arduino IDE with ACIoT, I have run into a couple of different issues being the most relevant the one that forbids me to compile the sketches pulled from ACIoT to my Arduno IDE.

C:\Users\mx7890\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\9dafd405-390a-416f-945e-d2cad66f4ef3\12-12-2024_ACIoT_00_Thing_dec12a\12-12-2024_ACIoT_00_Thing_dec12a.ino: In function 'void sendMessage2(char, String, String)':
C:\Users\mx7890\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\9dafd405-390a-416f-945e-d2cad66f4ef3\12-12-2024_ACIoT_00_Thing_dec12a\12-12-2024_ACIoT_00_Thing_dec12a.ino:1241:3: error: 'HTTPClient' was not declared in this scope; did you mean 'HttpClient'?
 1241 |   HTTPClient http;
      |   ^~~~~~~~~~
      |   HttpClient
C:\Users\mx7890\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\9dafd405-390a-416f-945e-d2cad66f4ef3\12-12-2024_ACIoT_00_Thing_dec12a\12-12-2024_ACIoT_00_Thing_dec12a.ino:1262:7: error: 'http' was not declared in this scope
 1262 |       http.begin(url0);
      |       ^~~~
C:\Users\mx7890\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\9dafd405-390a-416f-945e-d2cad66f4ef3\12-12-2024_ACIoT_00_Thing_dec12a\12-12-2024_ACIoT_00_Thing_dec12a.ino:1298:7: error: 'http' was not declared in this scope
 1298 |       http.begin(url1);
      |       ^~~~
C:\Users\mx7890\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\9dafd405-390a-416f-945e-d2cad66f4ef3\12-12-2024_ACIoT_00_Thing_dec12a\12-12-2024_ACIoT_00_Thing_dec12a.ino:1329:7: error: 'http' was not declared in this scope
 1329 |       http.begin(url1);
      |       ^~~~
Multiple libraries were found for "WiFi.h"
  Used: C:\Users\mx7890\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.7\libraries\WiFi
  Not used: D:\D_N4050\x2018\JJVG-P\CAVM [2023]\OwlTree\Clientes\OwlTree ESP32\Panic button\Software\libraries\WiFiNINA
exit status 1

Compilation error: 'HTTPClient' was not declared in this scope; did you mean 'HttpClient'?

Of course in my sketch I have included #include <HTTPClient.h>, as a global #incliude <HTTPClient.h> (I mean visible for everything)

This sounded me as if the #incliude <HTTPClient.h> directive wasn’t counting so I got the HTTPClient.h full pathname and replaced #incliude <HTTPClient.h> with #include "C:\Users\mx7890\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.7\libraries\HTTPClient\src\HTTPClient.h".
I also checked ok that HTTPClient class definition was inside the file whose full pathname I have included.
After this change and verifying, the error changed to:

c:/users/mx7890/appdata/local/arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld.exe: C:\Users\mx7890\AppData\Local\arduino\sketches\1C70B38F3C965F0C73E8537072F5FAE4\sketch\objs.a(12-12-2024_ACIoT_00_Thing_dec12a.ino.cpp.o): in function `connectWiFiMulti()':
C:\Users\mx7890\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\9dafd405-390a-416f-945e-d2cad66f4ef3\12-12-2024_ACIoT_00_Thing_dec12a/12-12-2024_ACIoT_00_Thing_dec12a.ino:1016: undefined reference to `HTTPClient::HTTPClient()'
c:/users/mx7890/appdata/local/arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld.exe: C:\Users\mx7890\AppData\Local\arduino\sketches\1C70B38F3C965F0C73E8537072F5FAE4\sketch\objs.a(12-12-2024_ACIoT_00_Thing_dec12a.ino.cpp.o): in function `sendMessage2(char, String, String)':
C:\Users\mx7890\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\9dafd405-390a-416f-945e-d2cad66f4ef3\12-12-2024_ACIoT_00_Thing_dec12a/12-12-2024_ACIoT_00_Thing_dec12a.ino:1254: undefined reference to `HTTPClient::begin(String)'
c:/users/mx7890/appdata/local/arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld.exe: C:\Users\mx7890\AppData\Local\arduino\sketches\1C70B38F3C965F0C73E8537072F5FAE4\sketch\objs.a(12-12-2024_ACIoT_00_Thing_dec12a.ino.cpp.o): in function `String::buffer() const':
C:\Users\mx7890\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.7\cores\esp32/WString.h:378: undefined reference to `HTTPClient::addHeader(String const&, String const&, bool, bool)'
c:/users/mx7890/appdata/local/arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld.exe: C:\Users\mx7890\AppData\Local\arduino\sketches\1C70B38F3C965F0C73E8537072F5FAE4\sketch\objs.a(12-12-2024_ACIoT_00_Thing_dec12a.ino.cpp.o): in function `sendMessage2(char, String, String)':
C:\Users\mx7890\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\9dafd405-390a-416f-945e-d2cad66f4ef3\12-12-2024_ACIoT_00_Thing_dec12a/12-12-2024_ACIoT_00_Thing_dec12a.ino:1261: undefined reference to `HTTPClient::setTimeout(unsigned short)'
c:/users/mx7890/appdata/local/arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld.exe: C:\Users\mx7890\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\9dafd405-390a-416f-945e-d2cad66f4ef3\12-12-2024_ACIoT_00_Thing_dec12a/12-12-2024_ACIoT_00_Thing_dec12a.ino:1261: undefined reference to `HTTPClient::POST(String)'
c:/users/mx7890/appdata/local/arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld.exe: C:\Users\mx7890\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\9dafd405-390a-416f-945e-d2cad66f4ef3\12-12-2024_ACIoT_00_Thing_dec12a/12-12-2024_ACIoT_00_Thing_dec12a.ino:1266: undefined reference to `HTTPClient::end()'
c:/users/mx7890/appdata/local/arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld.exe: C:\Users\mx7890\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\9dafd405-390a-416f-945e-d2cad66f4ef3\12-12-2024_ACIoT_00_Thing_dec12a/12-12-2024_ACIoT_00_Thing_dec12a.ino:1294: undefined reference to `HTTPClient::begin(String)'
c:/users/mx7890/appdata/local/arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld.exe: C:\Users\mx7890\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\9dafd405-390a-416f-945e-d2cad66f4ef3\12-12-2024_ACIoT_00_Thing_dec12a/12-12-2024_ACIoT_00_Thing_dec12a.ino:1294: undefined reference to `HTTPClient::addHeader(String const&, String const&, bool, bool)'
c:/users/mx7890/appdata/local/arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld.exe: C:\Users\mx7890\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\9dafd405-390a-416f-945e-d2cad66f4ef3\12-12-2024_ACIoT_00_Thing_dec12a/12-12-2024_ACIoT_00_Thing_dec12a.ino:1294: undefined reference to `HTTPClient::setTimeout(unsigned short)'
c:/users/mx7890/appdata/local/arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld.exe: C:\Users\mx7890\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\9dafd405-390a-416f-945e-d2cad66f4ef3\12-12-2024_ACIoT_00_Thing_dec12a/12-12-2024_ACIoT_00_Thing_dec12a.ino:1294: undefined reference to `HTTPClient::POST(String)'
c:/users/mx7890/appdata/local/arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld.exe: C:\Users\mx7890\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\9dafd405-390a-416f-945e-d2cad66f4ef3\12-12-2024_ACIoT_00_Thing_dec12a/12-12-2024_ACIoT_00_Thing_dec12a.ino:1299: undefined reference to `HTTPClient::end()'
c:/users/mx7890/appdata/local/arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld.exe: C:\Users\mx7890\AppData\Local\arduino\sketches\1C70B38F3C965F0C73E8537072F5FAE4\sketch\objs.a(12-12-2024_ACIoT_00_Thing_dec12a.ino.cpp.o): in function `String::buffer() const':
C:\Users\mx7890\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.7\cores\esp32/WString.h:378: undefined reference to `HTTPClient::begin(String)'
c:/users/mx7890/appdata/local/arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld.exe: C:\Users\mx7890\AppData\Local\arduino\sketches\1C70B38F3C965F0C73E8537072F5FAE4\sketch\objs.a(12-12-2024_ACIoT_00_Thing_dec12a.ino.cpp.o): in function `sendMessage2(char, String, String)':
C:\Users\mx7890\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\9dafd405-390a-416f-945e-d2cad66f4ef3\12-12-2024_ACIoT_00_Thing_dec12a/12-12-2024_ACIoT_00_Thing_dec12a.ino:1314: undefined reference to `HTTPClient::addHeader(String const&, String const&, bool, bool)'
c:/users/mx7890/appdata/local/arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld.exe: C:\Users\mx7890\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\9dafd405-390a-416f-945e-d2cad66f4ef3\12-12-2024_ACIoT_00_Thing_dec12a/12-12-2024_ACIoT_00_Thing_dec12a.ino:1318: undefined reference to `HTTPClient::setTimeout(unsigned short)'
c:/users/mx7890/appdata/local/arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld.exe: C:\Users\mx7890\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\9dafd405-390a-416f-945e-d2cad66f4ef3\12-12-2024_ACIoT_00_Thing_dec12a/12-12-2024_ACIoT_00_Thing_dec12a.ino:1322: undefined reference to `HTTPClient::POST(String)'
c:/users/mx7890/appdata/local/arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld.exe: C:\Users\mx7890\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\9dafd405-390a-416f-945e-d2cad66f4ef3\12-12-2024_ACIoT_00_Thing_dec12a/12-12-2024_ACIoT_00_Thing_dec12a.ino:1326: undefined reference to `HTTPClient::end()'
c:/users/mx7890/appdata/local/arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld.exe: C:\Users\mx7890\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\9dafd405-390a-416f-945e-d2cad66f4ef3\12-12-2024_ACIoT_00_Thing_dec12a/12-12-2024_ACIoT_00_Thing_dec12a.ino:1326: undefined reference to `HTTPClient::~HTTPClient()'
c:/users/mx7890/appdata/local/arduino15/packages/esp32/tools/esp-rv32/2302/bin/../lib/gcc/riscv32-esp-elf/12.2.0/../../../../riscv32-esp-elf/bin/ld.exe: C:\Users\mx7890\AppData\Local\Arduino15\RemoteSketchbook\ArduinoCloud\9dafd405-390a-416f-945e-d2cad66f4ef3\12-12-2024_ACIoT_00_Thing_dec12a/12-12-2024_ACIoT_00_Thing_dec12a.ino:1328: undefined reference to `HTTPClient::~HTTPClient()'
collect2.exe: error: ld returned 1 exit status
Multiple libraries were found for "WiFi.h"
  Used: C:\Users\mx7890\AppData\Local\Arduino15\packages\esp32\hardware\esp32\3.0.7\libraries\WiFi
  Not used: D:\D_N4050\x2018\JJVG-P\CAVM [2023]\OwlTree\Clientes\OwlTree ESP32\Panic button\Software\libraries\WiFiNINA
exit status 1

Compilation error: exit status 1

I also tried another posted workaround for my original issue:

... With no luck. Not all the needed folders where in my machine at the time I tried this workaround.

I will appreciate your help.
Thanks.