I had a working project with Arduino Mega + ethernet . The device is sending spin readings to another board with http client but it seems that it doesn’t work anymore.
> #include <HTTPClient.h> says exit status 1
HTTPClient.h: No such file or directory
so now I need to push data to pin of another device (or read from the other device the needed virtual pin)
Well, that’s my code, that I wrote for the ESP32, and has this line near the top…
When you choose an ESP32 board type in the IDE then the compiler uses the file paths that include the core files for that board type.
If you choose an Arduino AVR board type, then different file path are used, and your compiler can’t find a file called HTTPClient.h in the AVR core files.
That’s because the standard Arduino AVR HTTP file is called HttpClient.h not HTTPClient.h.
Changing to the correct header file name for the type of board you are using should allow the compiler to find the correct file.
Hi ,
I am having the same issue. “HTTPClient.h: No such file or directory”
I am using Arduino IDE 1.8.19 and the selected board is NodeMCU 0.9 (“ESP-12 module”)
Thanks
Thank you, Pete, for your quick reply.
I was supposed to use esp32, but it doesn’t work (is not recognized by the PC)! therefore I used my old Arduino Mega, only to check temperature reading and upload them into server