advertising via bluetooth is done
This commit is contained in:
@@ -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())
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user