def props_changed_cb(self, iface, changed_props, invalidated_props):
"""
Callback indicating that properties have changed.
:param iface: Interface associated with the callback.
:param changed_props: Properties changed that triggered the callback.
:param invalidated_props: Unused.
"""
if iface != constants.GATT_CHRC_IFACE:
return
if not len(changed_props):
return
value = changed_props.get('Value', None)
if not value:
return
logger.debug('Properties changed: ', value)
评论列表
文章目录