-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscan_test.py
More file actions
31 lines (23 loc) · 769 Bytes
/
Copy pathscan_test.py
File metadata and controls
31 lines (23 loc) · 769 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/usr/bin/env python3
"""Quick script to scan for Anova devices."""
import asyncio
import logging
from anovable import AnovaBLE
async def main() -> None:
logging.basicConfig(level=logging.INFO)
print("Scanning for Anova devices...")
anova = AnovaBLE()
try:
mac_address = await anova.discover_device()
if mac_address:
print(f"✅ Found Anova device at: {mac_address}")
else:
print("❌ No Anova device found")
print("Make sure your Anova A3 is:")
print("- Powered on")
print("- In Bluetooth pairing mode")
print("- Within range")
except Exception as e:
print(f"Error during scan: {e}")
if __name__ == "__main__":
asyncio.run(main())