Closed gbaranski closed 2 years ago
Thanks for checking! I just re-ran the codegen under macOS 12.0.1 and it generated the two characteristics as optional. So Apple's own implementation in macOS ist diverging from the spec here. Are you reading the latest version of the spec? And is the iOS controller complaining (read: not pairing) about our implementation? If it works, I'd say let's just stick with replicating Apple's implementation and call it a day.
Are you reading the latest version of the spec?
Yes, I think so.
And is the iOS controller complaining (read: not pairing) about our implementation?
It does connect, but it seemed weird.
Thanks for clarifying, should I keep the issue open?
I'd say let's close it. But please feel free to reopen should you run into any related issues!
you can find that here
https://github.com/ewilken/hap-rs/blob/main/src/service/generated/battery.rs#L34-L37
And according to the specification, those two are required.![Screenshot 2022-01-14 at 18 36 24](https://user-images.githubusercontent.com/34353640/149559992-6ca09b42-826e-4ca0-844c-a9a9971fb0e4.png)