platypush/plugins/bluetooth/ble/__init__.py
def scan(self, interface: Optional[str] = None, duration: int = 10) -> BluetoothScanResponse:
        """
        Scan for nearby bluetooth low-energy devices

        :param interface: Bluetooth adapter name to use (default configured if None)
        :param duration: Scan duration in seconds
        """
        from bluetooth.ble import DiscoveryService

        if interface is None:
            interface = self.interface

        self._check_ble_support()
        svc = DiscoveryService(interface)
        devices = svc.discover(duration)
        return BluetoothScanResponse(devices)

        Scan for nearby bluetooth low-energy devices

        :param interface: Bluetooth adapter name to use (default configured if None)
        :param duration: Scan duration in seconds
        
Scan for nearby bluetooth low-energy devices
Scan for nearby bluetooth low - energy devices
def scan(self, interface: Optional[str] = None, duration: int = 10) -> BluetoothScanResponse:
        from bluetooth.ble import DiscoveryService
        if interface is None:
            interface = self.interface
        self._check_ble_support()
        svc = DiscoveryService(interface)
        devices = svc.discover(duration)
        return BluetoothScanResponse(devices)
def scan ( self , interface : Optional [ str ] = None , duration : int = 10 ) -> BluetoothScanResponse : from bluetooth . ble import DiscoveryService if interface is None : interface = self . interface self . _check_ble_support ( ) svc = DiscoveryService ( interface ) devices = svc . discover ( duration ) return BluetoothScanResponse ( devices )
Scan for nearby bluetooth low-energy devices
Scan for nearby bluetooth low - energy devices
"""
        Scan for nearby bluetooth low-energy devices

        :param interface: Bluetooth adapter name to use (default configured if None)
        :param duration: Scan duration in seconds
        """
self
interface
Optional[str]
Bluetooth adapter name to use (default configured if None)
Bluetooth adapter name to use ( default configured if None )
duration
int
Scan duration in seconds
Scan duration in seconds