Open mateusmsantin opened 3 years ago
Using an interrupt callback works fine for me, example and motion sensor firmware can be found here:- https://github.com/maccoylton/esp-homekit-motion-sensor/tree/master/src
Hi @maccoylton, thanks for replying. I try to compile the code on the Arduino platform, but I get the error:
ensor_HS501: 16: 10: fatal error: espressif / esp_wifi.h: This file or directory does not exist
16 | #include <espressif / esp_wifi.h>
| ^ ~~~~~~~~~~~~~~~~~~~~~~~~
compilation finished.
exit status 1
espressif / esp_wifi.h: This file or directory does not exist
What do you use to compile, please.
This is not for use with Arduino, it's normally built from the command line. You need to follow the instructions on esp-homekit to set up your development environment.
Ok, I will make a configuration environment to compile and test. Is it possible to compile the example with a generic ESP8266, or just with ESP32?
This should work with either, although I use ESP8266.
I’d like to use at Arduino interface, but I stay to try configuring and install environment to compile the example (https://github.com/maccoylton/esp-homekit-motion-sensor/tree/master/src). But I’m don’t have success to do. Can somebody suggest a manual to compile it at Mac Os please ? I saw a lot of examples, but many errors. I believe that I don’t have many concepts.
I used ‘Exemple04_MultipleAccessories’ multiple_accessories.ino example and change to read sensor pin HC-SR501.
But it is unstable, that is, when the sensor is active it does not show the door reading. When I use the same circuit simply, just to check the reading it works.
simple.ino (just to test)
Thanks in Advanced.