From 07f07c34d8fa90c1916a74b7570af204e33f28a3 Mon Sep 17 00:00:00 2001 From: SpudGunMan Date: Wed, 31 Jul 2024 13:59:57 -0700 Subject: [PATCH] cleanup --- mesh_bot.py | 4 +++- pong_bot.py | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mesh_bot.py b/mesh_bot.py index 6e0d9f3..e3bd040 100755 --- a/mesh_bot.py +++ b/mesh_bot.py @@ -322,8 +322,10 @@ async def start_rx(): print(f"System: Respond by DM only") if repeater_enabled: print(f"System: Repeater Enabled for Channels: {repeater_channels}") - # Start the receive loop + + # Start the receive subscriber using pubsub via meshtastic library pub.subscribe(onReceive, 'meshtastic.receive') + msg = (f"{log_timestamp()} System: Autoresponder Started for Device1 {get_name_from_number(myNodeNum, 'long', 1)}," f"{get_name_from_number(myNodeNum, 'short', 1)}. NodeID: {myNodeNum}, {decimal_to_hex(myNodeNum)}") print (msg) diff --git a/pong_bot.py b/pong_bot.py index b307351..9856627 100755 --- a/pong_bot.py +++ b/pong_bot.py @@ -197,8 +197,10 @@ def onReceive(packet, interface): print("END of packet \n") async def start_rx(): - # Start the receive loop + + # Start the receive subscriber using pubsub via meshtastic library pub.subscribe(onReceive, 'meshtastic.receive') + msg = (f"{log_timestamp()} System: Autoresponder Started for Device1 {get_name_from_number(myNodeNum, 'long', 1)}," f"{get_name_from_number(myNodeNum, 'short', 1)}. NodeID: {myNodeNum}, {decimal_to_hex(myNodeNum)}") print (msg)