def get_properties(self):
"""Return a dictionary of the characteristic properties.
The dictionary has the following keys:
- Service: the characteristic's service
- UUID: the characteristic UUID
- Flags: any characteristic flags
- Descriptors: D-Bus array of the descriptor object paths
associated with the characteristic.
"""
return {
constants.GATT_CHRC_IFACE: {
'Service': self.service.get_path(),
'UUID': self.uuid,
'Flags': self.flags,
'Descriptors': dbus.Array(
self.get_descriptor_paths(),
signature='o')
}
}
评论列表
文章目录