New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Link Service.AccessoryInformation to the accessory's one to keep it to date #2207
Link Service.AccessoryInformation to the accessory's one to keep it to date #2207
Conversation
But note that Name, Model, Manufacurer and SerialNumber must be persistent during the lifetime of the accessory. (by spec) |
@nfarina What are your thoughts about these changes? |
Oh man, it's been a long while since I thought about this aspect of HAP - maybe @KhaosT would have a quicker reaction to it? |
I'd also like to be able to update the |
Any chance of getting this resolved? Being able to update Firmware Revision would be very nice. EDIT: I just tried this pull request locally, and it doesn’t seem to get updating Firmware Revision to work either. |
To answer some questions: |
Thank you for your comments on this!
I recall testing it locally and seeing things like the Maybe HAP-NodeJS has changed ever since and it doesn't work like that anymore, I'd have to test it again. That said, I agree the solution in #2169 is better performance-wise. Closing this PR in favour of that one. |
Okay I think some misinformation spread my be. Seems like indeed HAP calls read handlers for |
and probably all the other characteristics if they are configured |
A plugin I'm maintaining needs to perform some asynchronous operations before grabbing the SerialNumber or the FirmwareRevision.
I was trying to update the parameters via myAccessoryInformation.setCharacteristics calls but nothing was working and found we are copying the values to the Service.AccessoryInformation instantiated by HAP.
This MR intends to keep the HAP instance updated with any updates from the accessory itself.
I know the SerialNumber won't change over time, but the Firmware might because of updates :)