Some services have current and target versions of characteristics. Controller set the target value and expect the current value to update accordingly. Otherwise the controller might assume the accessory being unresponsive.
With this implementation, this behavior has to be implemented explicitly by a consumer of the library:
Set an on_update callback to the target value.
In it, update the current value to the target value the controller expects.
Accessory examples that might need this treatment:
Some services have
current
andtarget
versions of characteristics. Controller set thetarget
value and expect thecurrent
value to update accordingly. Otherwise the controller might assume the accessory being unresponsive.With this implementation, this behavior has to be implemented explicitly by a consumer of the library:
on_update
callback to thetarget
value.current
value to thetarget
value the controller expects.Accessory examples that might need this treatment: