From becad2595cf03a3c8d762582018aa75b5ff06e64 Mon Sep 17 00:00:00 2001 From: SpookyDervish Date: Fri, 15 May 2026 12:17:02 +1000 Subject: [PATCH] ping pong loop working! --- relay/connection.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/relay/connection.py b/relay/connection.py index d268e1d..432226f 100644 --- a/relay/connection.py +++ b/relay/connection.py @@ -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()