witnessmenow / esp8266-alexa-wemo-emulator

multiple belkin wemos switch emulator using ESP8266
GNU General Public License v2.0
132 stars 43 forks source link

fatal error: WiFiUDP.h: No such file or directory #3

Closed rena2019 closed 7 years ago

rena2019 commented 7 years ago

I tried to compile the examples and get: In file included from /home/rena2019/Arduino/SingleSwitch/SingleSwitch.ino:3:0: /home/rena2019/Arduino/libraries/esp8266-alexa-wemo-emulator-master/src/WemoSwitch.h:7:21: fatal error: WiFiUDP.h: No such file or directory

include

                 ^

compilation terminated. exit status 1 Error compiling for board NodeMCU 1.0 (ESP-12E Module).

my setup: Linux Mint 18.1, Arduino IDE 1.8.1 + "esp8266 by ESP8266 COMMUNITY 2.3.0" (https://github.com/esp8266/Arduino installed via http://arduino.esp8266.com/stable/package_esp8266com_index.json ), NodeMCU 1.0 (ESP-12E Module)

witnessmenow commented 7 years ago

Hey, I think I might have a mistake with the name of that header

In my library its WiFiUDP.h , but in esp8266 core its WiFiUdp.h (dp not upper case).

It makes sense windows would work as it ignores cases for files, but I'm on a Mac so surprised it wasn't an issue there.

Could you try changing on the WemoSwitch.h file that's in you error and see does that work?

rena2019 commented 7 years ago

It works after I changed "#include " in both files: WemoSwitch.h + WemoManager.h to "#include "

witnessmenow commented 7 years ago

Cool thanks for letting me know. I'll fix that when I get some time.