25 lines
506 B
Python
25 lines
506 B
Python
from sx1262 import SX1262
|
|
from _sx126x import *
|
|
|
|
from connection import Connection
|
|
|
|
import time
|
|
import crypt_random
|
|
import uasyncio as asyncio
|
|
|
|
|
|
def main():
|
|
bluetooth_handler = None
|
|
try:
|
|
from bluetooth_handler import BluetoothHandler
|
|
bluetooth_handler = BluetoothHandler()
|
|
except ImportError:
|
|
print("Bluetooth is disabled. Continuing without it...")
|
|
|
|
conn = Connection(bluetooth_handler)
|
|
asyncio.run(conn.start())
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|