moved from textual to nicegui
This commit is contained in:
@@ -19,9 +19,8 @@ class BluetoothPacket:
|
||||
data: dict
|
||||
|
||||
class MeshNode:
|
||||
def __init__(self, client: BleakClient, app):
|
||||
def __init__(self, client: BleakClient):
|
||||
self.client = client
|
||||
self.app = app
|
||||
self.name = "None"
|
||||
|
||||
self.rx_queue = asyncio.Queue()
|
||||
@@ -50,7 +49,6 @@ class MeshNode:
|
||||
await self.client.write_gatt_char(NODE_BLUETOOTH_TX_UUID, b"ping")
|
||||
|
||||
def notification_received(self, sender, data):
|
||||
self.app.log(f"Receive: {data}")
|
||||
self.rx_queue.put_nowait(data)
|
||||
|
||||
async def discover(app):
|
||||
|
||||
Reference in New Issue
Block a user