bluetooth.scanner.ble
Platypush documentation
bluetooth.scanner.ble
- class platypush.backend.bluetooth.scanner.ble.BluetoothBleScannerBackend(interface: Optional[int] = None, scan_duration: int = 10, **kwargs)[source]
Bases:
BluetoothScannerBackend
This backend periodically scans for available bluetooth low-energy devices and returns events when a devices enter or exits the range.
Triggers:
platypush.message.event.bluetooth.BluetoothDeviceFoundEvent
when a new bluetooth device is found.platypush.message.event.bluetooth.BluetoothDeviceLostEvent
when a bluetooth device is lost.
Requires:
The
platypush.plugins.bluetooth.BluetoothBlePlugin
plugin working.