Resolving ESP8266Wifi.h not found error when compiling Code for NodeMCU
This blog - shows how to resolve an error that is usually found at the beginning session of trying to compile ESP8266 code on the Arduino.
At this point -I'd imagine that you have connected one of the USB cable to the NodeMCU and other end to your laptop ( In my case a Mac OS)
If you tried to compile and Upload a sample code something like
#include <ESP8266WiFi.h>
constchar*ssid ="Name";
constchar*password ="Password";
; //
WiFiServerserver(80);
voidsetup() {
Serial.begin(115200);
delay(10);
...
and got an error that the ESP8266WiFi.h - was not found , then follow instructions as shown in this link:
https://github.com/ekstrand/ESP8266wifi

In my case - I had to copy, and unzip master.zip it in Users/shashikiran/Documents/Arduino/librariesfolder
and then compile the code.
Without which I was getting the "ESP8266WiFi.h not found in this Arduino workbench window.
At this point -I'd imagine that you have connected one of the USB cable to the NodeMCU and other end to your laptop ( In my case a Mac OS)
If you tried to compile and Upload a sample code something like
#include <ESP8266WiFi.h>
constchar*ssid ="Name";
constchar*password ="Password";
; //
WiFiServerserver(80);
voidsetup() {
Serial.begin(115200);
delay(10);
...
and got an error that the ESP8266WiFi.h - was not found , then follow instructions as shown in this link:
https://github.com/ekstrand/ESP8266wifi

In my case - I had to copy, and unzip master.zip it in Users/shashikiran/Documents/Arduino/librariesfolder
and then compile the code.
Without which I was getting the "ESP8266WiFi.h not found in this Arduino workbench window.

0 Comments:
Post a Comment
<< Home