Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 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
Ejemplo n.º 4
0
 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