From 7f1fd5d93e66627b939f244bec1e8b5c936c227d Mon Sep 17 00:00:00 2001 From: PrincessPi3 Date: Sun, 26 Apr 2026 22:44:15 -0600 Subject: [PATCH] tesxtan py aGin --- ... (# Edit conflict 2026-04-26 8ek270C #).py | 23 +++++++++++++++++++ implementations/Python3/DREAMMAKER.py | 4 ++-- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 implementations/Python3/DREAMMAKER (# Edit conflict 2026-04-26 8ek270C #).py diff --git a/implementations/Python3/DREAMMAKER (# Edit conflict 2026-04-26 8ek270C #).py b/implementations/Python3/DREAMMAKER (# Edit conflict 2026-04-26 8ek270C #).py new file mode 100644 index 0000000..efcbb7f --- /dev/null +++ b/implementations/Python3/DREAMMAKER (# Edit conflict 2026-04-26 8ek270C #).py @@ -0,0 +1,23 @@ +import asyncio +from bleak import BleakScanner, BleakError + +# C0:1C:6A is the prefix for my personal mobile, so not for use in real world +VENDOR_PREFIXES = ['00:25:DF', '00:58:28', '00:C0:D4', '84:70:03', 'C0:1C:6A', '01', '02', '03', '04', '05', '06', '07', '08' '09' '0B' '77' '99' '0A' '0B' '0C' '0D' '0E' '0F' 'AB' 'C0'] + +async def main(): + print("Scanning for BLE devices...") + try: + devices = await BleakScanner.discover() + print(f"Found {len(devices)} devices:") + filtered_devices = [device for device in devices if any(device.address.upper().startswith(prefix) for prefix in VENDOR_PREFIXES)] + if filtered_devices: + for device in filtered_devices: + print(f"MAC Address: {device.address}, Name: {device.name}") + else: + print("No devices found with the specified vendor prefixes.") + except BleakError as e: + print(f"Error: {e}") + print("Make sure Bluetooth is enabled and a Bluetooth adapter is present.") + +if __name__ == "__main__": + asyncio.run(main()) \ No newline at end of file diff --git a/implementations/Python3/DREAMMAKER.py b/implementations/Python3/DREAMMAKER.py index c56906e..7c5bbd8 100644 --- a/implementations/Python3/DREAMMAKER.py +++ b/implementations/Python3/DREAMMAKER.py @@ -1,8 +1,8 @@ import asyncio from bleak import BleakScanner, BleakError -# C0:1C:6A is the prefix for my personal mobile, so not for use in real world -VENDOR_PREFIXES = ['00:25:DF', '00:58:28', '00:C0:D4', '84:70:03', 'C0:1C:6A'] +VENDOR_PREFIXES = ['00:25:DF', '00:58:28', '00:C0:D4', '84:70:03', 'C0:1C:6A', '01', '02', '03', '04', '05', '06', '07', '08', '09', '0B', '77', '99', '0A', '0B', '0C', '0D', '0E', '0F', 'AB', 'C0'] + async def main(): print("Scanning for BLE devices...")