Arduino IDE can t find ESP8266WiFi h file

0 votes

I have been using NODEMCU ESP8266WiFi with Arduino IDE

When I run this code:

#include <ESP8266WiFi.h> 
#include <BlynkSimpleEsp8266.h> 
char auth[] = "YourAuthToken"; 
char ssid[] = "YourNetworkName"; 
char pass[] = "YourPassword"; 

void setup(){ 
    Serial.begin(9600); 
    Blynk.begin(auth, ssid, pass); 
}
void loop() 
{ 
    Blynk.run(); 
}


I get the following error:

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

            #include <ESP8266WiFi.h> ^ 

compilation terminated. 

exit status 1 
Error compiling for board Arduino/Genuino Uno.
Feb 16, 2022 in Others by Soham
• 9,710 points
10,009 views

1 answer to this question.

0 votes

Customisation and selection of the correct card is essential while you are programming the NODEMCU card with the Arduino IDE. 

Open Arduino IDE and go to files and click on the preference in the Arduino IDE.

Add the following link to the Additional Manager URLS section: "http://arduino.esp8266.com/stable/package_esp8266com_index.json" and press the

OK button.
 

Then click Tools> Board Manager. Type "ESP8266" in the text box to search and install the ESP8266 software for Arduino IDE.

You will be successful when you try to program again by selecting the NodeMCU card after these operations. I hope I could help you.

answered Feb 16, 2022 by Aditya
• 7,680 points

Related Questions In Others

0 votes
1 answer

How to find out how many rows and columns to read from an Excel file with PHPExcel?

Solution: $file_name = htmlentities($_POST['file_name']); $sheet_name = htmlentities($_POST['sheet_name']); $number_of_columns = htmlentities($_POST['number_of_columns']); $number_of_rows ...READ MORE

answered Oct 23, 2022 in Others by narikkadan
• 63,600 points
8,116 views
0 votes
1 answer
0 votes
1 answer

Excel how to find the default file extension

Make a dict of xlfileformats:extensions and use ...READ MORE

answered Jan 5, 2023 in Others by narikkadan
• 63,600 points
578 views
0 votes
1 answer
0 votes
0 answers

ExcelDataReader, can't read "html-format" file

I have the following code: ...READ MORE

Apr 11, 2023 in Others by Kithuzzz
• 38,000 points
699 views
0 votes
1 answer

Get files in my own file format for its own dynamic icon

Regarding MAC support, "The Mac and Windows ...READ MORE

answered Jan 8, 2019 in Others by DataKing99
• 8,250 points
1,136 views
0 votes
1 answer

What are the file permissions in Linux?

There are 3 types of permissions in ...READ MORE

answered Mar 8, 2019 in Others by Naba
2,307 views
0 votes
1 answer

Change the permission for a file created by me in linux

If you are the system administrator or ...READ MORE

answered Mar 8, 2019 in Others by Nabarupa
1,102 views
0 votes
1 answer

TCPDF ERROR: Some data has already been output, can't send PDF file

To answer your question, do add the ...READ MORE

answered Feb 16, 2022 in Others by Aditya
• 7,680 points
4,229 views
0 votes
1 answer

'adb' is not recognized as an internal or external command, operable program or batch file

Set the path of adb into System ...READ MORE

answered Feb 16, 2022 in Others by Aditya
• 7,680 points
7,173 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP