blatann.examples.example_utils module

blatann.examples.example_utils.find_target_device(ble_device, name)

Starts the scanner and searches the advertising report for the desired name. If found, returns the peer’s address that can be connected to

Parameters:
  • ble_device (BleDevice) – The ble device to operate on

  • name (str) – The device’s local name that is advertised

Returns:

The peer’s address if found, or None if not found

async blatann.examples.example_utils.find_target_device_async(ble_device, name)