From 1762c56956bafd6fc0636516b494dfa935ff8aec Mon Sep 17 00:00:00 2001 From: Bernhard Guillon Date: Wed, 25 Dec 2024 00:34:42 +0100 Subject: space_light: first version TODO: pwm initialization is currently best guess could be wrong active low|high TODO: implement pairing TODO: implement timer TODO: use the button for something TODO: implement a better client --- client/python/scan.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 client/python/scan.py (limited to 'client/python/scan.py') 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()) -- cgit v1.2.3