ewilken / hap-rs

Rust implementation of the Apple HomeKit Accessory Protocol (HAP)
Apache License 2.0
197 stars 35 forks source link

How to use this crate with RGB Lightbulb? #33

Closed gradddev closed 3 years ago

gradddev commented 3 years ago

I found generated characteristics for hue, saturation and brightness, but couldn't find examples on how to use that.

boozook commented 3 years ago

@AlexeySemigradsky check out optional fields there. 👋

ewilken commented 3 years ago

You're right about this not being ergonomic. I will evaluate having optional characteristics generated as Some by default. See #43.

ewilken commented 3 years ago

Lightbulb accessories are now generated as RGB by default. See the lightbulb example.