Esp8266wifi h no such file or directory как исправить

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 E...

@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.

Привет. Помогите пожалуйста. FastLED не может компилятор найти. Куда уже не засовывал. Что я делаю не так?

Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Плата:»LOLIN(WEMOS) D1 R2 & mini, 80 MHz, Flash, Disabled, All SSL ciphers (most compatible), 4M (1M SPIFFS), v2 Lower Memory, Disabled, None, Only Sketch, 921600″

GyverLamp_v1.5.5:97:21: error: FastLED.h: No such file or directory

#include <FastLED.h>

^

compilation terminated.

exit status 1
FastLED.h: No such file or directory

Этот отчёт будет иметь больше информации с
включенной опцией Файл -> Настройки ->
«Показать подробный вывод во время компиляции»

Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Плата:»LOLIN(WEMOS) D1 R2 & mini, 80 MHz, Flash, Disabled, All SSL ciphers (most compatible), 4M (1M SPIFFS), v2 Higher Bandwidth, Disabled, None, Only Sketch, 921600″

C:Program FilesWindowsAppsArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wttarduino-builder -dump-prefs -logger=machine -hardware C:Program FilesWindowsAppsArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtthardware -hardware C:UsersistreDocumentsArduinoDatapackages -tools C:Program FilesWindowsAppsArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtttools-builder -tools C:Program FilesWindowsAppsArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtthardwaretoolsavr -tools C:UsersistreDocumentsArduinoDatapackages -built-in-libraries C:Program FilesWindowsAppsArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wttlibraries -libraries C:UsersistreDocumentsArduinolibraries -fqbn=esp8266:esp8266:d1_mini:xtal=80,vt=flash,exception=disabled,ssl=all,eesz=4M1M,ip=hb2f,dbg=Disabled,lvl=None____,wipe=none,baud=921600 -vid-pid=1A86_7523 -ide-version=10809 -build-path C:UsersistreAppDataLocalTemparduino_build_783816 -warnings=none -build-cache C:UsersistreAppDataLocalTemparduino_cache_732496 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:UsersistreDocumentsArduinoDatapackagesesp8266toolsxtensa-lx106-elf-gcc2.5.0-3-20ed2b9 -prefs=runtime.tools.xtensa-lx106-elf-gcc-2.5.0-3-20ed2b9.path=C:UsersistreDocumentsArduinoDatapackagesesp8266toolsxtensa-lx106-elf-gcc2.5.0-3-20ed2b9 -prefs=runtime.tools.mkspiffs.path=C:UsersistreDocumentsArduinoDatapackagesesp8266toolsmkspiffs2.5.0-3-20ed2b9 -prefs=runtime.tools.mkspiffs-2.5.0-3-20ed2b9.path=C:UsersistreDocumentsArduinoDatapackagesesp8266toolsmkspiffs2.5.0-3-20ed2b9 -prefs=runtime.tools.python.path=C:UsersistreDocumentsArduinoDatapackagesesp8266toolspython3.7.2-post1 -prefs=runtime.tools.python-3.7.2-post1.path=C:UsersistreDocumentsArduinoDatapackagesesp8266toolspython3.7.2-post1 -verbose C:UsersistreDownloadsGyverLamp-masterGyverLamp-masterfirmwareGyverLamp_v1.5.5GyverLamp_v1.5.5.ino
C:Program FilesWindowsAppsArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wttarduino-builder -compile -logger=machine -hardware C:Program FilesWindowsAppsArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtthardware -hardware C:UsersistreDocumentsArduinoDatapackages -tools C:Program FilesWindowsAppsArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtttools-builder -tools C:Program FilesWindowsAppsArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtthardwaretoolsavr -tools C:UsersistreDocumentsArduinoDatapackages -built-in-libraries C:Program FilesWindowsAppsArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wttlibraries -libraries C:UsersistreDocumentsArduinolibraries -fqbn=esp8266:esp8266:d1_mini:xtal=80,vt=flash,exception=disabled,ssl=all,eesz=4M1M,ip=hb2f,dbg=Disabled,lvl=None____,wipe=none,baud=921600 -vid-pid=1A86_7523 -ide-version=10809 -build-path C:UsersistreAppDataLocalTemparduino_build_783816 -warnings=none -build-cache C:UsersistreAppDataLocalTemparduino_cache_732496 -prefs=build.warn_data_percentage=75 -prefs=runtime.tools.xtensa-lx106-elf-gcc.path=C:UsersistreDocumentsArduinoDatapackagesesp8266toolsxtensa-lx106-elf-gcc2.5.0-3-20ed2b9 -prefs=runtime.tools.xtensa-lx106-elf-gcc-2.5.0-3-20ed2b9.path=C:UsersistreDocumentsArduinoDatapackagesesp8266toolsxtensa-lx106-elf-gcc2.5.0-3-20ed2b9 -prefs=runtime.tools.mkspiffs.path=C:UsersistreDocumentsArduinoDatapackagesesp8266toolsmkspiffs2.5.0-3-20ed2b9 -prefs=runtime.tools.mkspiffs-2.5.0-3-20ed2b9.path=C:UsersistreDocumentsArduinoDatapackagesesp8266toolsmkspiffs2.5.0-3-20ed2b9 -prefs=runtime.tools.python.path=C:UsersistreDocumentsArduinoDatapackagesesp8266toolspython3.7.2-post1 -prefs=runtime.tools.python-3.7.2-post1.path=C:UsersistreDocumentsArduinoDatapackagesesp8266toolspython3.7.2-post1 -verbose C:UsersistreDownloadsGyverLamp-masterGyverLamp-masterfirmwareGyverLamp_v1.5.5GyverLamp_v1.5.5.ino
Using board ‘d1_mini’ from platform in folder: C:UsersistreDocumentsArduinoDatapackagesesp8266hardwareesp82662.5.2
Using core ‘esp8266’ from platform in folder: C:UsersistreDocumentsArduinoDatapackagesesp8266hardwareesp82662.5.2
Detecting libraries used…
«C:\Users\istre\Documents\ArduinoData\packages\esp8266\tools\xtensa-lx106-elf-gcc\2.5.0-3-20ed2b9/bin/xtensa-lx106-elf-g++» -D__ets__ -DICACHE_FLASH -U__STRICT_ANSI__ «-IC:\Users\istre\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/include» «-IC:\Users\istre\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/lwip2/include» «-IC:\Users\istre\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.2/tools/sdk/libc/xtensa-lx106-elf/include» «-IC:\Users\istre\AppData\Local\Temp\arduino_build_783816/core» -c -w -Os -g -mlongcalls -mtext-section-literals -fno-rtti -falign-functions=4 -std=c++11 -ffunction-sections -fdata-sections -fno-exceptions -w -x c++ -E -CC -DNONOSDK221=1 -DF_CPU=80000000L -DLWIP_OPEN_SRC -DTCP_MSS=1460 -DLWIP_FEATURES=1 -DLWIP_IPV6=0 -DARDUINO=10809 -DARDUINO_ESP8266_WEMOS_D1MINI -DARDUINO_ARCH_ESP8266 «-DARDUINO_BOARD=»ESP8266_WEMOS_D1MINI»» -DFLASHMODE_DIO -DESP8266 «-IC:\Users\istre\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.2\cores\esp8266» «-IC:\Users\istre\Documents\ArduinoData\packages\esp8266\hardware\esp8266\2.5.2\variants\d1_mini» «C:\Users\istre\AppData\Local\Temp\arduino_build_783816\sketch\GyverLamp_v1.5.5.ino.cpp» -o nul
GyverLamp_v1.5.5:97:21: error: FastLED.h: No such file or directory

#include <FastLED.h>

^

compilation terminated.

exit status 1
FastLED.h: No such file or directory

Проблема такая: есть 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
}

Понравилась статья? Поделить с друзьями:
  • Esp8266 ota error no answer
  • Esp8266 flash error
  • Esp8266 chip sync error
  • Esp32 chip sync error
  • Esp32 a fatal error occurred md5 of file does not match data in flash