bluetooth.scanner.ble

class platypush.backend.bluetooth.scanner.ble.BluetoothBleScannerBackend(interface: Optional[int] = None, scan_duration: int = 10, **kwargs)[source]

This backend periodically scans for available bluetooth low-energy devices and returns events when a devices enter or exits the range.

Triggers:

Requires:

  • The platypush.plugins.bluetooth.BluetoothBlePlugin plugin working.

__init__(interface: Optional[int] = None, scan_duration: int = 10, **kwargs)[source]
Parameters
  • interface – Bluetooth adapter name to use (default configured on the bluetooth.ble plugin if None).

  • scan_duration – How long the scan should run (default: 10 seconds).