advertising via bluetooth is done

This commit is contained in:
2026-05-15 17:14:33 +10:00
parent 00ac34431d
commit 46ae344c0c
5 changed files with 50 additions and 28 deletions

View File

@@ -7,16 +7,16 @@ import time
import crypt_random
import uasyncio as asyncio
BLUETOOTH_ENABLED = False
def main():
bluetooth_handler = None
if BLUETOOTH_ENABLED:
try:
from bluetooth_handler import BluetoothHandler
bluetooth_handler = BluetoothHandler()
except ImportError:
print("Bluetooth is disabled. Continuing without it...")
conn = Connection()
conn = Connection(bluetooth_handler)
asyncio.run(conn.start())