View Single Post
Posts: 99 | Thanked: 325 times | Joined on Jul 2010
#4
Originally Posted by b0unc3 View Post
Yes, right but I was looking in the wrong way. I needed to simply add a call to libhal_ctx_set_device_condition() and all works as expected.
Thanks for your help!
Just a quick note: libhal_ctx_set_device_condition() won't fire the callback until you have a libhal_device_add_property_watch().
This is by libhal's design as it will only add a dbus watch rule if add a property watch even if you are only interested in the "conditions".