Fatal error: ESP8266WiFi.h: No such file or directory

I set up Arduino to program a Sparkfun Thing, and everything was fine. I wrote some projects. Then I added a configuration to the Additional Boards Manager for ATtiny chips. But I neglected to use a comma, so it erased the URL for ESP32. I have added back the expressif URL to the Additional Boards Manager, and selected the Thing board, but it can't find the library. I have searched the hard disk, and the library is on it. But evidently Arduino has lost the path to it.

Can anything be done?

So what does your Additional Boards Manager URL look like now?

https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json,http://arduino.esp8266.com/stable/package_esp8266com_index.json, http://drazzy.com/package_drazzy.com_index.json

I've got a separate URL for 8266 boards.

This is my URL. The esp32 package is listed. And I can choose ESP boards from the Tools menu. It just seems to have lost the path to "ESP8266WiFi.h"

https://raw.githubusercontent.com/damellis/attiny/ide-1.6.x-boards-manager/package_damellis_attiny_index.json,http://drazzy.com/package_drazzy.com_index.json,https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json

I think I have solved it. I changed my json package from the one I had been using to the one shown below, and I can now Verify without error.

What still puzzles me is that you have TWO json packages for esp32. Should I add back your github package, which was what I had before? Or maybe it's not needed for esp8266.

https://arduino.esp8266.com/stable/package_esp8266com_index.json

I believe there are different board managers for ESP32 and ESP8266... so 2 entries required in the IDE.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.