apple / HomeKitADK

Apache License 2.0
2.55k stars 232 forks source link

Change state by anther method won't callback to the home app #63

Open duanzhen opened 4 years ago

duanzhen commented 4 years ago

I managed to control led on an esp32 board. With calling handlewrite by a GPIO button. But it's seems like this kind of call have some trouble to raiseevent of notify home app.

d4rkmen commented 3 years ago

When changing accessory state (like lightbulb.on) need to raise the hap event for service/characteristic changed as it described in example. This will perform onRead handler and report to controller