Compilation error 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.

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

I want to turn my ESP8266 into an access point so that I can connect directly to it.

I use the following sketch, but when I select
GENERIC module ESP8266 from menu, the libraries ESP8266WiFi.h and ESP8266WebServer.h become available but I was unable to upload the sketch.

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.

#include <ESP8266wifi.h>
#include <WiFiClient.h>
#include <ESP8266WebServer.h>
#include<WiFi.h>
#include<SoftwareSerial.h>
SoftwareSerial esp(2,3);
IPAddress local_IP(192,168,4,22);
IPAddress gateway(192,168,4,9);
IPAddress subnet(255,255,255,0);
 String ssid="Wisal";
 String pass="12345678";
 ESP8266WebServer server(80);
 boolean isAccessPointCreated=false;
void setup(){
  esp.begin(115200);
  Serial.begin(115200);
  
  WiFi.mode(WIFI_AP);
  Serial.print("Setting soft-AP configuration ... ");
  Serial.println(WiFi.softAPConfig(local_IP, gateway, subnet) ? "Ready" : "Failed!");

  Serial.print("Setting soft-AP ... ");
  Serial.println(WiFi.softAP("ESPsoftAP_01") ? "Ready" : "Failed!");
  Serial.print("Soft-AP IP address = ");
  Serial.println(WiFi.softAPIP());
  
}

void loop(){
  while(esp.available()>0){
    char a = esp.read();
      if(a == '')
        continue;
      if(a != 'r' && a != 'n' && (a < 32))
        continue;
      Serial.print(a);
   }
}

Привет. Помогите пожалуйста. 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
}

PlatformIO Community

Loading

Mon Jan 28, 2019 4:01 pm
#80315

New to esp8266, skilled arduino user.
To get the basics up and running I downloaded the libraries from the ESP8266 github page.
From the cloned repo I copied the ESP8266Wifi library (.librariesESP8266WiFi) to my Arduino libraries folder and fired up Visual Micro (Visual Studio 2017 extension for Arduino).
I am trying to download the following sketch:

Code: Select all#include "ESP8266WiFi.h"

const char* ssid = "my-wifi-ssid"; //your WiFi Name
const char* password = "my-wifi-password";  //Your Wifi Password

WiFiServer server(80);

void setup() {
   Serial.begin(115200);
   delay(10);
   Serial.print("Connecting to ");
   Serial.println(ssid);
   WiFi.begin(ssid, password);
   while (WiFi.status() != WL_CONNECTED) {
      delay(500);
      Serial.print(".");
   }
   Serial.println("");
   Serial.println("WiFi connected");
}

void loop() {
   delay(1);
}

When I try to compile this simple piece of code the compiler gives me this:

Code: Select allWiFiClientSecureBearSSL.h: 28:29: fatal error: bearssl/bearssl.h: No such file or directory
   #include <bearssl/bearssl.h>
   compilation terminated

Ok, so it is missing a referenced class. Maybe something got corrupted while extracting the library or something, so I downloaded it again with the same result.
Eventually found the bearssl header files in .toolssdkincludes and copied the bearssl folder into the ESP8266WiFisrc folder. Ran the compiler again and now it is giving me this:

Code: Select allThe ESP8266WiFi library encountered an unknown path resolve error.D*: 30:24: fatal error: StackThunk.h: No such file or directory
   #include <StackThunk.h>
   compilation terminated

What else do I have to modify or copy to get the incomplete library working?
Have the same results with releases from the github repo.
Any help is appreciated.

Понравилась статья? Поделить с друзьями:
  • Compatmode как исправить приложение
  • Compatmode win7rtm winxpsp2 как исправить
  • Compass error move aircraft or calibrate compass что делать
  • Compass error log book
  • Compass error dji mavic pro