Exemple #1
0
 def get_controllers(self) -> List[Controller]:
     """
     Overriding EngineBluew's get_controllers method.
     :return: List of controllers available.
     """
     bio = BluezObjectInterface(self._bus)
     return bio.get_controllers()
Exemple #2
0
    def get_chrcs(self, mac: str) -> List[BLECharacteristic]:
        """
        Overriding EngineBluew's get_chrcs method.
        :param mac: Device path. @mac_to_dev takes care of getting the proper
        path from the device's mac address.
        :return: List of BLE characteristics available.
        """

        boiface = BluezObjectInterface(self._bus)
        return boiface.get_characteristics(mac)
Exemple #3
0
 def _get_devices(self) -> List[Device]:
     boiface = BluezObjectInterface(self._bus)
     devices = boiface.get_devices()
     return devices
Exemple #4
0
 def controllers(self):
     """A property to get controllers available."""
     boiface = BluezObjectInterface(self._bus)
     return boiface.get_controllers()
Exemple #5
0
 def devices(self):
     """A property to get devices nearby."""
     boiface = BluezObjectInterface(self._bus)
     return boiface.get_devices()