diff options
Diffstat (limited to 'client/python/scan.py')
| -rw-r--r-- | client/python/scan.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/client/python/scan.py b/client/python/scan.py new file mode 100644 index 0000000..b5e8531 --- /dev/null +++ b/client/python/scan.py @@ -0,0 +1,13 @@ +# Bluetooth LE scanner +# Prints the name and address of every nearby Bluetooth LE device + +import asyncio +from bleak import BleakScanner + +async def main(): + devices = await BleakScanner.discover() + + for device in devices: + print(device) + +asyncio.run(main()) |
