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)