@Lior-Rubin said:
Hi, when I'm try to upload the sketch GatewayESP8266 I got the following error:
In file included from /Users/liorrubin/Documents/Arduino/libraries/MySensors-2.0.0/MySensors.h:299:0,
from /var/folders/l0/kxrb9wmd6rj651nw4gld5nx00000gn/T/arduino_modified_sketch_982538/GatewayESP8266.ino:137:
/Users/liorrubin/Documents/Arduino/libraries/MySensors-2.0.0/core/MyMainESP8266.cpp:4:10: error: #include expects "FILENAME" or <FILENAME>
#include “Schedule.h”
^
In file included from /Users/liorrubin/Documents/Arduino/libraries/MySensors-2.0.0/MySensors.h:299:0,
from /var/folders/l0/kxrb9wmd6rj651nw4gld5nx00000gn/T/arduino_modified_sketch_982538/GatewayESP8266.ino:137:
/Users/liorrubin/Documents/Arduino/libraries/MySensors-2.0.0/core/MyMainESP8266.cpp:13:26: fatal error: core_version.h: No such file or directory
#include <core_version.h>
^
compilation terminated.
exit status 1
Error compiling for board NodeMCU 1.0 (ESP-12E Module).
Even when i try to comment the "Include Schedule.h" then i got an error about the "core_version.h" file.
anyone ?
Just started playing with mysensors - in my case trying to use a WeMos D1R2. I was getting the same errors - although I can happily compile other sketches on the boards so I knew it wasn't me.... well, probably not entirely. I think maybe because I've only recently started using it perhaps I don't have older libraries installed as well as the current ones? Anyhow, horrible hack is as follows:
- Go to https://github.com/esp8266/Arduino
- Download the core branch
- Open the zip file and go to the cores/esp8266 directory (yes you can also download just the files below individually, but I have found in the past you can have issues with corrupted files doing it that way - feel free to give it a go if you want)
- Copy the files Schedule.cpp, Schedule.h, and core_version.h and put them into your arduino\libraries\MySensors-master directory
Compile away and hopefully it will work this time! Did for me......
Note - if you decide to use your board for sensors as well you may have to copy over other supporting files.
Cheers
Update - for some weird reason errors came back, and I could not trace the cause easily. Decided to do a clean install - backup up my sketches, and removed the Arduino IDE along with the libraries. Note that on my mac there was a library folder both in my documents as well as in username\Library. Anyhow, reinstalled, re-downloaded everything, and my sketches compiled without an issue.