HomeKit Library for the Arduino-ESP32
Go to file
Gregg 3979498b3c Created Example 16 - Programmable Pushbutton
Modified SpanCharacteristic::sprintfAttributes to streamline logic and add special handling for the ProgrammableSwitchEvent Characteristic as required by HAP:  the value returned for the database or any read request must be set to null (i.e. "value":null).  The only time the real value should be returned is when the device sends a EV/Notify message (when the button is pressed).  Verified that the example works as expected!

TO DO:  Add functionality to allow for Service Namespace and Index label so that you can have multiple programmable pushbuttons in one service - this requires logic for HAP LINKED SERVICE functionality.
2020-10-31 09:35:42 -05:00
docs Create Setup Codes.key 2020-10-29 07:42:01 -05:00
examples Created Example 16 - Programmable Pushbutton 2020-10-31 09:35:42 -05:00
src Created Example 16 - Programmable Pushbutton 2020-10-31 09:35:42 -05:00
.gitattributes Initial commit 2020-07-18 21:47:39 -05:00
.gitignore Update .gitignore 2020-10-05 21:34:37 -05:00
LICENSE Create LICENSE 2020-10-04 10:29:24 -05:00
README.md Initial commit 2020-07-18 21:47:39 -05:00
library.properties Update library.properties 2020-10-05 21:30:40 -05:00

README.md

HomeSpan

HomeKit for the Arduino-ESP32