Fatal error esp8266wifi h no such file or directory

I am trying to use NOD MCU ESP8266WiFi with Arduino IDE When I run this code: #include #include char auth[] = "YourAuthToken"; char ssi...

I am trying to use NOD MCU 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.

Freddy Mcloughlan's user avatar

asked Apr 28, 2018 at 19:24

Abuwesam's user avatar

1

When programming the NODEMCU card with the Arduino IDE, you need to customize it and you must have selected the correct card.

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.

Steven Lee's user avatar

answered Apr 28, 2018 at 22:58

gokhan's user avatar

gokhangokhan

4613 silver badges2 bronze badges

3

Starting with 1.6.4, Arduino IDE can be used to program and upload the NodeMCU board by installing the ESP8266 third-party platform package (refer https://github.com/esp8266/Arduino):

  • Start Arduino, go to File > Preferences
  • Add the following link to the Additional Boards Manager URLs: http://arduino.esp8266.com/stable/package_esp8266com_index.json and press OK button
  • Click Tools > Boards menu > Boards Manager, search for ESP8266 and install ESP8266 platform from ESP8266 community (and don’t forget to select your ESP8266 boards from Tools > Boards menu after installation)

To install additional ESP8266WiFi library:

  • Click Sketch > Include Library > Manage Libraries, search for ESP8266WiFi and then install with the latest version.

After above steps, you should compile the sketch normally.

EDIT: the lib might have already been included in the later version of Arduino IDE, so firstly, check if it is included, then if not yet, install it, you can refer below link for a systematic guidance on how to debug such kind of issue:
https://www.programmingelectronics.com/no-such-file-error/

answered Jun 20, 2018 at 15:01

Steven Lee's user avatar

Steven LeeSteven Lee

3753 silver badges14 bronze badges

6

Just don’t forget to select your board, after install

answered Jul 27, 2021 at 16:25

Vitalicus's user avatar

VitalicusVitalicus

1,14112 silver badges15 bronze badges

For those who are having trouble with fatal error: ESP8266WiFi.h: No such file or directory, you can install the package manually.

  1. Download the Arduino ESP8266 core from here https://github.com/esp8266/Arduino
  2. Go into library from the downloaded core and grab ESP8266WiFi.
  3. Drag that into your local Arduino/library folder. This can be found by going into preferences and looking at your Sketchbook location

You may still need to have the http://arduino.esp8266.com/stable/package_esp8266com_index.json package installed beforehand, however.

Edit: That wasn’t the full issue, you need to make sure you have the correct ESP8266 Board selected before compiling.

Hope this helps others.

answered Nov 22, 2020 at 0:57

Åustin's user avatar

@flirt

I want to turn my esp8266 into access point so that i would able to connect directly to it.i use the following sketch but when i select GENERIC module ESP8266 from menu the two libraries which is ESP8266WiFi.h and #include ESP8266WebServer.h become available but at this point i was unable to upload sketch to arduino.Also when i select Board as arduino uno (Which i have really) and then what to upload then the above two files becomes unavailable and says fatal error no such file…no idea what to do next…Thanks in advance for kind attention.

@bebo-dot-dev

@lmk1988

Which Arduino version are you using? The latest that that worked for me was 1.6.9, any higher it generates compile errors. Official is on 1.6.8, perhaps try downgrading to it if you are using a higher Arduino Version

@bebo-dot-dev

I have this installed and working in v1.8.1 of the Arduino IDE here. This is their latest version today and a test compile of one of the included sample sketches works without any build issues. This is running on Linux Mint 18.1.

I’m not a fan of the Arduino IDE and I don’t actually use it..but that’s another story.

@lmk1988

:( Sadly I just tried 1.8.1, it doesn’t work for me. It still have compile errors but due to external .h files

@bebo-dot-dev

take a look at the screenshots I posted in this other issue: #2993 (comment)

if that doesn’t help, I suggest you post your own screenshots

@Ahmedabbas1993

Hi dear
I’m use the blynk library,stand alone program but there is an error when I verify the program ,
c/users/arduino /libraries…………. no such file or directory

@Roanb89

Im having a similar error «fatal error: data.h: No such file or directory» then under, it says #include «data.h»

@devyte

There is no compilation issue using the Arduino IDE 1.8.4 and with latest git core.
This as either user error or installation error. For assistance, please refer to esp8266.com or stackoverflow.
Closing.

@crwhite57

I love using Arduino IDE but I hate it when someone is getting an error, but people like devyte just say that it is a user or installation error. We are asking for help with the error, not asking what it is not. I am trying to compile a sketch and I keep getting a «wl_definitions.h: No such file or directory» even though when I try to install the library that has the file, Arduino tells me that it is already installed. Normally if I get something like this I just find the library and install it and that fixes it, but not with this. Does anyone have any ideas about what is going on? I am using Arduino IDE 1.8.13 on Windows 10 and I have my board selected as Modemcu32s. It is an esp-wroom-32 developmental board. Maybe I have the wrong board selected but I don’t know. It worked fine when I was programming it to work with Alexa and some relays.
By the way, this is the full error line:

Used: C:Users13212AppDataLocalArduino15packagesesp32hardwareesp321.0.6librariesWiFi
C:Users13212DocumentsArduinoSketcheslibrariesESP8266wifisrc/ESP8266WiFi.h:28:28: fatal error: wl_definitions.h: No such file or directory
Not used: C:Program Files (x86)ArduinolibrariesWiFi
compilation terminated.
exit status 1
Error compiling for board NodeMCU-32S.

@d-a-v

Lots of users error indeed in your post:

  • You are using an esp32 but you’re in the esp8266 arduino core issue tracker.
  • This issue tracker is meant to track the esp8266 arduino core issue and not meant to help users with installation issue,
    except when the issue is because of the arduino core installer — which is not the case here.
    The reason is that it’d be too much work for the people responsible for the repo.
    User errors are generally well managed in forum like stack overflow arduino section for example, or esp8266.com for esp8266 users.
  • If there was a real issue with wl_definitions.h, nobody could use this core.
  • This is a closed issue. If there’s something wrong, please open a new issue.

We hope you’ll be able to use your ESP32 with the right arduino core.
You need to select the right board in the Arduino IDE tools menu.
You seem to be using the esp8266 specific libraries with an esp32 installation. I personally don’t know how this can happen.
I’d advise you to delete your arduino installation including the «arduino15» directory, and start over from scratch.

@themindfactory

Either its a case of picking the right board definition or your system is
real messed up and its time to start from scratch

On Sun, May 23, 2021, 15:30 david gauchard, ***@***.***> wrote:
Lots of users error indeed in your post:

— You are using an esp32 but you’re in the esp8266 arduino core issue
tracker.
— This issue tracker is meant to track the esp8266 arduino core issue
and not meant to help users with installation issue,
except when the issue is because of the arduino core installer — which
is not the case here.
The reason is that it’d be too much work for the people responsible
for the repo.
User errors are generally well managed in forum like stack overflow
arduino section for example, or esp8266.com for esp8266 users.
— If there was a real issue with wl_definitions.h, nobody could use
this core.
— This is a closed issue. If there’s something wrong, please open a
new issue.

We hope you’ll be able to use your ESP32 with the right arduino core.
You need to select the right board in the Arduino IDE tools menu.
You seem to be using the esp8266 specific libraries with an esp32
installation. I personally don’t know how this can happen.
I’d advise you to delete your arduino installation including the
«arduino15» directory, and start over from scratch.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2996 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACBV22IYWIF5TXREHTTZS6LTPFJVPANCNFSM4DBQJOGQ>
.

@crwhite57

Ok, thanks.

On Sun, May 23, 2021 at 3:41 PM themindfactory ***@***.***>
wrote:

Either its a case of picking the right board definition or your system is
real messed up and its time to start from scratch

On Sun, May 23, 2021, 15:30 david gauchard, ***@***.***>
wrote:

> Lots of users error indeed in your post:
>
> — You are using an esp32 but you’re in the esp8266 arduino core issue
> tracker.
> — This issue tracker is meant to track the esp8266 arduino core issue
> and not meant to help users with installation issue,
> except when the issue is because of the arduino core installer — which
> is not the case here.
> The reason is that it’d be too much work for the people responsible
> for the repo.
> User errors are generally well managed in forum like stack overflow
> arduino section for example, or esp8266.com for esp8266 users.
> — If there was a real issue with wl_definitions.h, nobody could use
> this core.
> — This is a closed issue. If there’s something wrong, please open a
> new issue.
>
> We hope you’ll be able to use your ESP32 with the right arduino core.
> You need to select the right board in the Arduino IDE tools menu.
> You seem to be using the esp8266 specific libraries with an esp32
> installation. I personally don’t know how this can happen.
> I’d advise you to delete your arduino installation including the
> «arduino15» directory, and start over from scratch.
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#2996 (comment)>,
> or unsubscribe
> <
https://github.com/notifications/unsubscribe-auth/ACBV22IYWIF5TXREHTTZS6LTPFJVPANCNFSM4DBQJOGQ
>
> .
>


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2996 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ATM2LSW2HN6KPFLQJL23YV3TPFK6VANCNFSM4DBQJOGQ>
.

@alexhopeoconnor

Can compile fine using VS code extension but using arduino IDE I get the same same error mentioned above, this seems to be some kind of problem with the IDE and how it includes libraries, VS code extension seems to find .arduino15/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/wl_definitions.h just fine.

Содержание

  1. fatal error ESP8266WiFi.h no such file or directory #2996
  2. Comments
  3. Footer
  4. ESP8266WiFi library is giving compilation error. #8000
  5. Comments
  6. Arduino IDE can’t find ESP8266WiFi.h file
  7. 4 Answers 4
  8. ESP8266WiFi.h: No such file or directory #42
  9. Comments
  10. WiFiManager.h: No such file or directory / Platform.io #1229
  11. Comments
  12. Basic Infos
  13. Hardware
  14. Description

fatal error ESP8266WiFi.h no such file or directory #2996

I want to turn my esp8266 into access point so that i would able to connect directly to it.i use the following sketch but when i select GENERIC module ESP8266 from menu the two libraries which is ESP8266WiFi.h and #include ESP8266WebServer.h become available but at this point i was unable to upload sketch to arduino.Also when i select Board as arduino uno (Which i have really) and then what to upload then the above two files becomes unavailable and says fatal error no such file. no idea what to do next. Thanks in advance for kind attention.

The text was updated successfully, but these errors were encountered:

«i use the following sketch» That’s nice..what sketch might that be?
Anyway it sounds like you have some sort of local install / setup problem. The best I can offer is you start again here: https://github.com/esp8266/Arduino/blob/master/README.md#installing-with-boards-manager

Which Arduino version are you using? The latest that that worked for me was 1.6.9, any higher it generates compile errors. Official is on 1.6.8, perhaps try downgrading to it if you are using a higher Arduino Version

I have this installed and working in v1.8.1 of the Arduino IDE here. This is their latest version today and a test compile of one of the included sample sketches works without any build issues. This is running on Linux Mint 18.1.

I’m not a fan of the Arduino IDE and I don’t actually use it..but that’s another story.

🙁 Sadly I just tried 1.8.1, it doesn’t work for me. It still have compile errors but due to external .h files

take a look at the screenshots I posted in this other issue: #2993 (comment)

if that doesn’t help, I suggest you post your own screenshots

Hi dear
I’m use the blynk library,stand alone program but there is an error when I verify the program ,
c/users/arduino /libraries. no such file or directory

Im having a similar error «fatal error: data.h: No such file or directory» then under, it says #include «data.h»

There is no compilation issue using the Arduino IDE 1.8.4 and with latest git core.
This as either user error or installation error. For assistance, please refer to esp8266.com or stackoverflow.
Closing.

I love using Arduino IDE but I hate it when someone is getting an error, but people like devyte just say that it is a user or installation error. We are asking for help with the error, not asking what it is not. I am trying to compile a sketch and I keep getting a «wl_definitions.h: No such file or directory» even though when I try to install the library that has the file, Arduino tells me that it is already installed. Normally if I get something like this I just find the library and install it and that fixes it, but not with this. Does anyone have any ideas about what is going on? I am using Arduino IDE 1.8.13 on Windows 10 and I have my board selected as Modemcu32s. It is an esp-wroom-32 developmental board. Maybe I have the wrong board selected but I don’t know. It worked fine when I was programming it to work with Alexa and some relays.
By the way, this is the full error line:

Used: C:Users13212AppDataLocalArduino15packagesesp32hardwareesp321.0.6librariesWiFi
C:Users13212DocumentsArduinoSketcheslibrariesESP8266wifisrc/ESP8266WiFi.h:28:28: fatal error: wl_definitions.h: No such file or directory
Not used: C:Program Files (x86)ArduinolibrariesWiFi
compilation terminated.
exit status 1
Error compiling for board NodeMCU-32S.

Lots of users error indeed in your post:

  • You are using an esp32 but you’re in the esp8266 arduino core issue tracker.
  • This issue tracker is meant to track the esp8266 arduino core issue and not meant to help users with installation issue,
    except when the issue is because of the arduino core installer — which is not the case here.
    The reason is that it’d be too much work for the people responsible for the repo.
    User errors are generally well managed in forum like stack overflow arduino section for example, or esp8266.com for esp8266 users.
  • If there was a real issue with wl_definitions.h , nobody could use this core.
  • This is a closed issue. If there’s something wrong, please open a new issue.

We hope you’ll be able to use your ESP32 with the right arduino core.
You need to select the right board in the Arduino IDE tools menu.
You seem to be using the esp8266 specific libraries with an esp32 installation. I personally don’t know how this can happen.
I’d advise you to delete your arduino installation including the «arduino15» directory, and start over from scratch.

Can compile fine using VS code extension but using arduino IDE I get the same same error mentioned above, this seems to be some kind of problem with the IDE and how it includes libraries, VS code extension seems to find .arduino15/packages/esp8266/hardware/esp8266/3.0.2/cores/esp8266/wl_definitions.h just fine.

© 2023 GitHub, Inc.

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.

Источник

ESP8266WiFi library is giving compilation error. #8000

Hi, I am using Arduino Uno with ESP8266 module. While compiling getting below compilation error

ArduinolibrariesESP8266WiFisrc/ESP8266WiFi.h:28:10: fatal error: wl_definitions.h: No such file or directory
#include
^

compilation terminated.
exit status 1
Error compiling for board Arduino Uno.

Below is the code snippet

// Initialize Wifi connection to the router char ssid[] = «****»; // your network SSID (name) char password[] = «****»; // your network key // Pushsafer private or alias key #define PushsaferKey «****» /*WiFiClientSecure client;*/ WiFiClient client; Pushsafer pushsafer(PushsaferKey, client); void setup() < Serial.begin(115200); // Set WiFi to station mode and disconnect from an AP if it was Previously // connected WiFi.mode(WIFI_STA); WiFi.disconnect(); delay(100); // Attempt to connect to Wifi network: Serial.print(«Connecting Wifi: «); Serial.println(ssid); WiFi.begin(ssid, password); while (WiFi.status() != WL_CONNECTED) < Serial.print(«.»); delay(500); >Serial.println(«»); Serial.println(«WiFi connected»); Serial.print(«IP address: «); Serial.println(WiFi.localIP()); pushsafer.debug = true; // Take a look at the Pushsafer.com API at // https://www.pushsafer.com/en/pushapi struct PushSaferInput input; input.message = «This is a test message»; input.title = «Hello!»; input.sound = «8»; input.vibration = «1»; input.icon = «1»; input.iconcolor = «#FFCCCC»; input.priority = «1»; input.device = «a»; input.url = «https://www.pushsafer.com»; input.urlTitle = «Open Pushsafer.com»; input.picture = «»; input.picture2 = «»; input.picture3 = «»; input.time2live = «»; input.retry = «»; input.expire = «»; input.answer = «»; Serial.println(pushsafer.sendEvent(input)); Serial.println(«Sent»); // client.stop(); > void loop() < >«>

The text was updated successfully, but these errors were encountered:

Источник

Arduino IDE can’t find ESP8266WiFi.h file

I am trying to use NOD MCU ESP8266WiFi with Arduino IDE

When I run this code:

I get the following error:

4 Answers 4

When programming the NODEMCU card with the Arduino IDE, you need to customize it and you must have selected the correct card.

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.

Starting with 1.6.4, Arduino IDE can be used to program and upload the NodeMCU board by installing the ESP8266 third-party platform package (refer https://github.com/esp8266/Arduino):

  • Start Arduino, go to File >Preferences
  • Add the following link to the Additional Boards Manager URLs: http://arduino.esp8266.com/stable/package_esp8266com_index.json and press OK button
  • Click Tools >Boards menu >Boards Manager, search for ESP8266 and install ESP8266 platform from ESP8266 community (and don’t forget to select your ESP8266 boards from Tools >Boards menu after installation)

To install additional ESP8266WiFi library:

  • Click Sketch >Include Library >Manage Libraries, search for ESP8266WiFi and then install with the latest version.

After above steps, you should compile the sketch normally.

Источник

ESP8266WiFi.h: No such file or directory #42

I got this error : ESP8266.ino:9:25: fatal error: ESP8266WiFi.h: No such file or directory

The text was updated successfully, but these errors were encountered:

Looks like you didn’t select «Generic ESP8266 WiFi board» in the Arduino IDE. Can you check that?

Yes. That was the problem.

Meanwhile I cloned https://github.com/ekstrand/ESP8266wifi into libraries.
Do you use ekstrand’s ESP8266?

Now should work (?) after I figure out how to connect the board.
What is the recommended way to upload a sketch to ESP8266? May I use a FTDI serial to USB adapter?
I have a ESP-07 module .
This :

where do you find this file — ESP8266WiFi.h

you can see it in the IDE when selecting the correct board but i cannot find it in my windows file structure?

Well you don’t need to locate it yourself — when you select the correct board in the IDE it gets available by default.

so basiically we cant use ESP8266WiFi.h if we choose arduino as board?

i really want to use that library, because my esp8266 attached to my arduino, i want to make a IR transmitter, which is connected to my Wifi network. since esp8266 self lack of real pwm pin

Yes indeed. Well from what I know the ESP8266 PWM works just fine, I used it just this morning 🙂 From the official GitHub repository:

analogWrite(pin, value) enables software PWM on the given pin. PWM may be used on pins 0 to 15. Call analogWrite(pin, 0) to disable PWM on the pin. value may be in range from 0 to PWMRANGE, which is currently equal to 1023.

And of course it’s supported by aREST 🙂

Closing this issue as it’s not aREST — related

Источник

WiFiManager.h: No such file or directory / Platform.io #1229

Basic Infos

Hardware

WiFimanager Branch/Release: 0.16.0

Core Version: 2.4.0, staging

Description

I don’t know if I’m doing something wrong, but I am unable to use the WifiManager with esp32dev board using Platformio. I am using the following platformio.ini

and I get the following error message:

I don’t know if this is really a bug with this library, but I’m unable to find a solution for that. Any help would be appreciated. Thanks!

The text was updated successfully, but these errors were encountered:

I never used it but maybe this will help.

I updated that page, thanks, master is now development
This should works, maybe a problem with pio lib manager, or pio env, it should auto install deps

I am also experiencing this issue. I had to manually download and include WiFiManager.h and strings_en.h from master in my project before I could get it to compile.

Even if you include wifimanager.h alone? Hmm

Yeah. I started with just: #include (besides Arduino.h) and adding this line in my platformio.ini:
lib_deps = tzapu/WiFiManager@^0.16.0 . When that didn’t work, I went and tried to manually install the library in platformio. It still didn’t work. I don’t think it is too relevant, but I’m using an old NodeMCU with an ESP8266MOD chip. It seems to work just fine when I included local file copies.

I am getting the error on PIO .pio/libdeps/esp32dev/WiFiManager/WiFiManager.h:16:25: fatal error: ESP8266WiFi.h: No such file or directory.

After installing the library using platformio I compare the github wifimanager.h file with the wifmanager.h file downloaded into my project by platformio and they are different. Have not tried just a manual install. The github wifimanager.h is the one that is correct don’t know how pio is grabbing a different file. The fun never ends.

Sounds like it doesn’t know its esp32, Sounds like a platform issue

It is a platform issue. I cloned the repo to my project added #include in main and it all worked.

My problem turned out to be a typo:
#include #Should be:

Not sure where the typo came from, if I just fat fingered it or if it was incorrectly mentioned in some documentation somewhere. Also uncertain why it worked when I cloned from the repo directly. So to be explicit:

Same issue but nothing works ):

@tablatronix I can confirm this still happens. I’m using PlatformIO Core 6.1.5m Home 3.4.3 with an «adafruit_feather_esp32s3_nopsram» device (https://www.adafruit.com/product/5323). Trying to run the Basic.ino example. The full error messages are below, but briefly said — the IDE is unable to find the files ESP8266WiFi.h, ESP8266WebServer.h and user_interface.h. Is this ineed an unresolved dependency to this repo? https://github.com/esp8266/Arduino/tree/master/libraries/ESP8266WebServer

[ <
«resource»: «/Users/jensa/Documents/PlatformIO/Projects/RGBWifiMan/.pio/libdeps/adafruit_feather_esp32s3_nopsram/WiFiManager/WiFiManager.h»,
«owner»: «C/C++»,
«code»: «1696»,
«severity»: 8,
«message»: «cannot open source file «ESP8266WiFi.h»»,
«source»: «C/C++»,
«startLineNumber»: 16,
«startColumn»: 1,
«endLineNumber»: 16,
«endColumn»: 25
>]
[ <
«resource»: «/Users/jensa/Documents/PlatformIO/Projects/RGBWifiMan/.pio/libdeps/adafruit_feather_esp32s3_nopsram/WiFiManager/WiFiManager.h»,
«owner»: «C/C++»,
«code»: «1696»,
«severity»: 8,
«message»: «cannot open source file «ESP8266WebServer.h»»,
«source»: «C/C++»,
«startLineNumber»: 17,
«startColumn»: 1,
«endLineNumber»: 17,
«endColumn»: 30
>]
[ <
«resource»: «/Users/jensa/Documents/PlatformIO/Projects/RGBWifiMan/.pio/libdeps/adafruit_feather_esp32s3_nopsram/WiFiManager/WiFiManager.h»,
«owner»: «C/C++»,
«code»: «1696»,
«severity»: 8,
«message»: «cannot open source file «user_interface.h»»,
«source»: «C/C++»,
«startLineNumber»: 22,
«startColumn»: 3,
«endLineNumber»: 22,
«endColumn»: 30
>]

@tablatronix if you can point me where to look (as in where the library containing ESP8266WiFi.h is from) I’ll dig into this and produce a PR.

Источник

Проблема такая: есть ESP8266-12, поставил ESPlorer 0.2.0-rc2, ESP8266-12 запаян на переходник, питание с ЮСБ через 1117 стабилизатор 3,3В, , делаю это на ноуте Леново, винда 7 64бита, программирую через USB-UART CP2102. Светодиод на ESP8266-12 не светиться должен ли он светиться?( причём не светиться и когда GPIOO и когда к плюсу подтянут и когда к земле). Вот в ESPlorere у меня такое, заливаю прогу(делаю это кнопкой save to ESP) в ESP8266-12, а в ESPlorer 0.2.0-rc2 потом пишет Timout reached aborted, это нормально? И как допустим узнать IP адресс моего модуля, или самому его назначить в ESPlorer?

При программировании GPIOO и GPIO15 на земле, CH_PD и GPIO2 на + питания

Ссылка на скрин в ворде что показывает в ESPlorer 0.2.0-rc2 https://vk.com/doc136239358_437064810?hash=9d82e528f71ee13923&dl=f709ddc63a703633ba

Вообщем решил связать ESP8266 с ардуино, беру библиотеку [HASHTAG]#include[/HASHTAG] <ESP8266WiFi.h>

Хочу создать вайфай станцию что бы с мобилы управлять, набросал пока для начала код, взят из примера в ардуино, и какой пример не беру мне в ардуино ИДЕ ошибка( причём брал ардуино разных версий 1.6.3, 1.6.7, 1.0.3, 1.6.5) , чёто с библиотекой ESP8266WiFi.h, а что не понятно, пишет такое во всех версиях ардуино ИДЕArduino: 1.6.3 (Windows 7), Плата»Arduino Uno»

udp_server.ino:1:25: fatal error: ESP8266WiFi.h: No such file or directory

compilation terminated.

Ошибка компиляции.

Библиотеку вкладываю как положено
Библиотеку брал отсюда и с других мест
https://github.com/esp8266/Arduino/tree/master/libraries

Код:

кодрасечатать?
01
#include <ESP8266WiFi.h>
02
03
04
#include <WiFiUdp.h>
05
06
WiFiUDP Udp;
07
08
const char* ssid = "ret";
09
const int ledPin =  13;
10
11
IPAddress local_ip = (192,168,1,200);
12
13
14
15
16
void setup() {
17
  // put your setup code here, to run once:
18
  Serial.begin(115200);
19
  delay(10);
20
  
21
 
22
  pinMode(ledPin, OUTPUT);
23
  
24
  digitalWrite(ledPin, 0);
25
       
26
  // Connect to WiFi network
27
  Serial.println();
28
  Serial.println();
29
  Serial.print("Connecting to ");
30
  Serial.println(ssid);
31
32
  WiFi.mode(WIFI_STA);
33
  WiFi.begin(ssid);
34
  //if not need fix ip please comment
35
  //WiFi.config(local_ip, gateway, subnet);
36
  while (WiFi.status() != WL_CONNECTED) {
37
    delay(500);
38
    Serial.print(".");
39
  }
40
  Serial.println("");
41
  Serial.println("WiFi connected");
42
  // Start the server
43
  Udp.begin(49999);
44
  Serial.println("UDP Server started");
45
46
  // Print the IP address
47
  Serial.println(WiFi.localIP());
48
49
}
50
51
void loop() {
52
53
// Check if a client has connected
54
  Udp.parsePacket();
55
  while(Udp.available()){
56
    Serial.print(Udp.remoteIP());
57
    Serial.print(" : ");
58
    String req = Udp.readStringUntil('r');
59
    //char req = Udp.read();
60
    Serial.println(req);
61
    
62
       
63
    Udp.flush();
64
    delay(5);
65
  }
66
 
67
}

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Fatal error encountered attempting to read the resultset
  • Fatal error e72 segment
  • Fatal error e06d7363
  • Fatal error dx11
  • Fatal error during simulation start please close other running application phoenix fd

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии