brutella / hap

The HomeKit Accessory Protocol (hap) implemented in Go
Apache License 2.0
346 stars 39 forks source link

Implement WriteResponse characteristics #37

Closed geekman closed 1 year ago

geekman commented 1 year ago

Some control points require that the response be returned after a write, as opposed to write-then-read.

If the SetValueRequestFunc returns a value and has the WriteResponse permission, then the response is relayed back to the client on return. Status code must be explicitly returned in this case, via a MultiStatus return.

brutella commented 1 year ago

The pull request looks good to me. Thanks!