brutella / hc

hc is a lightweight framework to develop HomeKit accessories in Go.
Apache License 2.0
1.74k stars 189 forks source link

Add Resource Endpoint #113

Closed ipstatic closed 5 years ago

ipstatic commented 6 years ago

I've been looking at adding IP camera support to HC and believe we are missing a requisite endpoint in order to do so: /resource. From reading the HAP documentation it appears this endpoint is only used to request an image from the IP camera (see page 245). I have tried to add an endpoint mirroring the code from Accessory and Characteristics however the endpoint never seems to get called. I wonder if there is another callback expected to be execute first?

ipstatic commented 5 years ago

@brutella any thoughts?

brutella commented 5 years ago

Take a look a the HomeKit camera implementation in hkcam.