简体   繁体   中英

Compiling with library throws error

I Found a Firebase example for an Arduino, from Github . I have added the Firebase Arduino library as instructed in the ReadMe document, but the compilation failed, throwing the following error:

In file included from firebase_sample_stream.ino:20:0:
/Users/<username>/Documents/Arduino/libraries/firebase-arduino-master/Firebase.h:24:25: fatal error: ESP8266WiFi.h: No such file or directory
#include <ESP8266WiFi.h>

Not only Firebase library, but also any other libraries. What am I missing here?

Hope someone would have solved this issue.

You can manually download the file from here and include it in your project. That may work. Or you can add http://arduino.esp8266.com/stable/package_esp8266com_index.json into Additional Board Manager and update the board.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM