mixiaoxiao / arduino-homekit-esp Goto Github PK
View Code? Open in Web Editor NEWArduino library version of espressif's official esp-homekit-sdk.
License: MIT License
Arduino library version of espressif's official esp-homekit-sdk.
License: MIT License
Will other examples be added to understand the basic principles of adding different types of smart devices?
In this example, I cannot find void for digitalWrite to send a signal to the relay, for example...
are you planning to do support for new devices and latest espressif arduino core?
.pio/libdeps/pico32/Arduino-HomeKit-ESP/src/port/bignum.c:49:46: error: 'DPORT_RSA_PD' undeclared (first use in this
function)
DPORT_REG_CLR_BIT(DPORT_RSA_PD_CTRL_REG, DPORT_RSA_PD);
^~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/pico32/Arduino-HomeKit-ESP/src/port/bignum.c:58:23: error: 'DPORT_RSA_PD_CTRL_REG' undeclared (first use in this function)
DPORT_REG_SET_BIT(DPORT_RSA_PD_CTRL_REG, DPORT_RSA_PD);
^~~~~~~~~~~~~~~~~~~~~
.pio/libdeps/pico32/Arduino-HomeKit-ESP/src/port/bignum.c:58:46: error: 'DPORT_RSA_PD' undeclared (first use in this
function)
DPORT_REG_SET_BIT(DPORT_RSA_PD_CTRL_REG, DPORT_RSA_PD);
^~~~~~~~~~~~
Placed the downloaded library in the Arduino libraries
folder but got the next error in Arduino IDE - no headers files (.h) found in Arduino-HomeKit-ESP
What can be the reason?
Thanks for help in advance.
Hi again!
Thank you for your port. Looking at your sources, I realise that you probably aware of this problem, so this issue I opened, is just to clarify have you found a solution or not.
In brief: i’ve made a simple program with hap switch and a WebServer. WebServer serves the site with the content located on the littlefs partition with streamFile call. It opens requested file, streams it to the client, then closes it.
When used with esp hap, it leads to the errno 23 after a few minutes of inactivity. I mean, external inactivity, like, no http queries, hap is working in the background. Then, after 15-30 minutes, each lwip accept call in the WebServer fails with errno 23. Hap is still working for a while, but also fails then, when i try to reconnect the client (like, rebooting iphone and relaunching its home.app)
My question is: are you really aware of that? I see a piece of “workaround” code in your sources, where you’re trying to close control connections. Looks like it doesn’t fix it completely, I suppose it just postphones the problem, and webserver usage just makes it visible quicker.
the same code without hap works fine for hours of course, which makes me think that there’s some “sockets leak” inside espressif hap. Do you have any ideas?
Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.