def resolve_gatt(self): """ Get the methods and properties for the discovered Services :return: """ if self.rmt_device.services_resolved: self.service_methods = dbus_tools.get_methods( self.adapter_addr, self.device_addr, self.srv_uuid) self.service_props = dbus_tools.get_props(self.adapter_addr, self.device_addr, self.srv_uuid)
def resolve_gatt(self): """ Get the methods and properties for the discovered Services :return: """ if self.rmt_device.services_resolved: self.service_methods = dbus_tools.get_methods(self.adapter_addr, self.device_addr, self.srv_uuid) self.service_props = dbus_tools.get_props(self.adapter_addr, self.device_addr, self.srv_uuid)
def resolve_gatt(self): """ Get the methods and properties for the discovered characteristics :return: Boolean of if characteristics have been resolved """ logger.info('Resolving GATT database for %s', self.chrc_uuid) if self.rmt_device.services_resolved: self.characteristic_methods = dbus_tools.get_methods( self.adapter_addr, self.device_addr, self.srv_uuid, self.chrc_uuid) self.characteristic_props = dbus_tools.get_props( self.adapter_addr, self.device_addr, self.srv_uuid, self.chrc_uuid) return True return False
def resolve_gatt(self): """ Get the methods and properties for the discovered characteristics :return: Boolean of if characteristics have been resolved """ logger.info('Resolving GATT database for {}'.format(self.chrc_uuid)) if self.rmt_device.services_resolved: self.characteristic_methods = dbus_tools.get_methods( self.adapter_addr, self.device_addr, self.srv_uuid, self.chrc_uuid) self.characteristic_props = dbus_tools.get_props( self.adapter_addr, self.device_addr, self.srv_uuid, self.chrc_uuid) return True else: return False