ItKindaWorks / ESPHelper

A library to make using WiFi & MQTT on the ESP8266 easy.
GNU General Public License v3.0
327 stars 67 forks source link

Fatel Error: Metro.h: No such file or directory #8

Closed hb5fa closed 7 years ago

hb5fa commented 7 years ago

I got the Metro.h (No such file or directory error) when I first tried out ESPHelper basicUse project. Any idea if the custom Metro.h file should be included into the project?

ItKindaWorks commented 7 years ago

Have you installed the Metro library from here?

hb5fa commented 7 years ago

Yes I did. Now I am getting ESP8266mDNS.h error. I do have pubsubclient library installed.

ItKindaWorks commented 7 years ago

Have you installed the ESP8266 core files from here?

hb5fa commented 7 years ago

Let me try. I didn't see it in your instruction.

hb5fa commented 7 years ago

Imported the library. Still getting the same error. Let me try something different.

hb5fa commented 7 years ago

Giving up! It forces me to use Teensy board. Once I switched back to generic ESP8266 board, the same Metro.h missing error again.

ItKindaWorks commented 7 years ago

Where do you have the metro library installed? Is it in your libraries folder inside of your sketch folder? The Metro library shouldn't be only usable with teensy.

hb5fa commented 7 years ago

I used the installer. I followed the instruction and installed in under the Arduino's un-zipped directory.

hb5fa commented 7 years ago

Arduino: 1.8.2 (Windows 10), TD: 1.36, Board: "Generic ESP8266 Module, 80 MHz, 40MHz, DIO, 115200, 512K (64K SPIFFS), ck, Disabled, None"

In file included from D:_AllProjects\ESP8266\ESPHelperBasic\ESPHelperBasic.ino:22:0:

E:\LocalLibraries\MyDocuments\Arduino\libraries\ESPHelper-master\src/ESPHelper.h:33:19: fatal error: Metro.h: No such file or directory

include "Metro.h"

               ^

compilation terminated.

exit status 1 Error compiling for board Generic ESP8266 Module.

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

ItKindaWorks commented 7 years ago

Download this and install the library into your Arduino sketches/libraries folder. Here is a guide on installing libraries manually https://www.arduino.cc/en/guide/libraries

hb5fa commented 7 years ago

Let me try

hb5fa commented 7 years ago

Specified folder/zip file does not contain a valid library Specified folder/zip file does not contain a valid library

This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences.

hb5fa commented 7 years ago

That's when I tried to import the library as ZIP file.

hb5fa commented 7 years ago

Trying Manually now.

ItKindaWorks commented 7 years ago

unzip the folder and read the INSTALL.txt file within.

hb5fa commented 7 years ago

Ok. Trying...

hb5fa commented 7 years ago

Looks like it's going now!!! Thanks so much! I can upload the initial sketch now. I'll try the functionalities.

ItKindaWorks commented 7 years ago

Great to hear you got it working!