16 lines
379 B
Python
16 lines
379 B
Python
import asyncio
|
|
from bleak import BleakClient
|
|
|
|
address = "CF:1C:C7:CB:5C:B3"
|
|
|
|
|
|
async def main():
|
|
print(f"Connecting to {address}...")
|
|
# winrt is for windows, bluez is for linux
|
|
async with BleakClient(address, timeout=20.0) as client:
|
|
print(f"Connected: {client.is_connected}")
|
|
# If this prints True, you have bypassed the filter!
|
|
|
|
|
|
asyncio.run(main())
|