Unable to compile esp8266wifi library due to missing files
Posted: Mon Jan 28, 2019 4:01 pm
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 (.\libraries\ESP8266WiFi) to my Arduino libraries folder and fired up Visual Micro (Visual Studio 2017 extension for Arduino).
I am trying to download the following sketch:
When I try to compile this simple piece of code the compiler gives me this:
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 .\tools\sdk\includes and copied the bearssl folder into the ESP8266WiFi\src folder. Ran the compiler again and now it is giving me this:
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.
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 (.\libraries\ESP8266WiFi) 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 all
WiFiClientSecureBearSSL.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 .\tools\sdk\includes and copied the bearssl folder into the ESP8266WiFi\src folder. Ran the compiler again and now it is giving me this:
Code: Select all
The 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.