ping pong loop working!

This commit is contained in:
2026-05-15 12:17:02 +10:00
parent 224709f913
commit becad2595c

View File

@@ -19,14 +19,9 @@ class Connection:
# start lora handler
self.lora = LoRaHandler()
async def advertising_loop(self):
while True:
self.lora.advertise()
await asyncio.sleep(5)
async def start(self):
print("Starting connection...")
asyncio.create_task(self.advertising_loop())
self.lora.advertise()
while True:
msg: LoRaMessage = await self.lora.message_queue.get()