HomeLinuxNo such file or listing

No such file or listing


The ESP8266 is a Wi-Fi primarily based board that may present wi-fi connectivity to varied initiatives. The ESP8266 board like ESP32 can be programmed with Arduino IDE. Nevertheless, customers might encounter an error message that claims “ESP8266 No such file or listing” whereas attempting to program the ESP board. This text covers the doable causes for this error and find out how to repair it.

Learn how to Repair “ESP8266 No such file or listing” Error

The “ESP8266 No such file or listing” error usually happens whenever you’re attempting to compile code for the ESP8266 microcontroller, and the IDE or compiler can’t discover the mandatory information to finish the method.

The error message often happens when the ESP8266WiFi library is lacking or not put in appropriately. The ESP8266 board core should be put in in Arduino IDE to resolve this error.

Observe: The ESP8266WiFi.h is by default added to Arduino IDE as soon as we set up the ESP8266 board core in Arduino IDE. It means if the board core shouldn’t be correctly put in, we have now to reinstall it from the begin to make the WiFi libraries run with none error.

Now we’ll cowl some doable options for this error.

Answer 1: Set up the ESP8266 Board Core

Fundamental trigger for the ESP8266WiFi.h error is often the lacking ESP8266 set up within the Arduino IDE. To program ESP8266 the corresponding board cores should be put in in IDE.

The ESP8266 Arduino Core is a C++-based firmware that helps customers to program ESP8266 boards with IDE and management the WiFi and different wi-fi elements of this board. For detailed info on the ESP8266 Arduino Core go to the GitHub repository for ESP8266 [ESP8266 Arduino Board Core].

You too can set up the ESP8266 in IDE utilizing the JSON file from the next steps:

Step 1: First, open the Arduino IDE and go to preferences. Within the Preferences window, search for the “Further Boards Supervisor URLs” discipline. On this discipline, enter the next URL:

http://arduino.esp8266.com/steady/package_esp8266com_index.json

Observe: If you have already got the ESP32 boards URLs, separate them with commas as follows:

https://dl.espressif.com/dl/package_esp32_index.json, http://arduino.esp8266.com/steady/package_esp8266com_index.json

Step 2: When you’ve entered the URL, click on the “OK” button to avoid wasting the modifications.

Step 3: After that, go to the Arduino board supervisor and seek for “esp8266”. Click on “Set up” to start the ESP8266 set up in Arduino IDE.

Graphical user interface, text, application Description automatically generated

As soon as the ESP8266 is efficiently added, reopen the IDE and once more compile the code, this may resolve the error.

Answer 2: Add the Appropriate Header File for ESP8266WiFi.h Library

Second purpose that may result in an ESP8266WiFi.h library error is using the mistaken header file. In case you are utilizing ESP8266 with an Arduino board, be sure that you utilize the header file “ESP8266WiFi.h” and never “WiFi.h”, which is used for ESP32. In case you are utilizing a unique platform or microcontroller, be sure that you utilize the right header file.

In your Arduino sketch, just remember to have included the “ESP8266WiFi.h” header file at the start of your code. So as to add this library to your sketch, use the next key phrase at starting of the Arduino sketch:

 

Answer 3: Reinstall the ESP8266 Board

Third purpose on the listing is lacking the ESP8266 file path which can result in this error. Attempt checking the file path of the header file. Ensure that the trail is appropriate and positioned at a specified location.

All the extra boards put in in Arduino IDE might be considered contained in the Arduino15 folder.

C:UsersusernameAppDataLocalArduino15packages

Ensure the ESP8266 folder is current contained in the Arduino15 listing as proven within the picture beneath.

Alternatively, you can even confirm the right set up of the ESP8266 WiFi library by going to Sketch>Embrace Library>ESP8266WiFi

This can open a brand new window. This code is displaying all of the put in ESP8266 WiFi libraries in Arduino IDE. For those who discovered any of the libraries lacking strive reinstalling the ESP8266 board in Arduino IDE as talked about above in answer 1.

Graphical user interface, text, application Description automatically generated

Conclusion

The ESP8266WiFi library error “No such file or listing” happens when the Arduino IDE fails to seek out the trail of this library. This error may also happen due to a lacking header file or as a result of the ESP8266 board core shouldn’t be put in correctly. By following the options outlined within the article, this error might be simply solved.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments