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()
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)
def _get_devices(self) -> List[Device]: boiface = BluezObjectInterface(self._bus) devices = boiface.get_devices() return devices
def controllers(self): """A property to get controllers available.""" boiface = BluezObjectInterface(self._bus) return boiface.get_controllers()
def devices(self): """A property to get devices nearby.""" boiface = BluezObjectInterface(self._bus) return boiface.get_devices()