This commit is contained in:
SpudGunMan
2024-07-31 13:59:57 -07:00
parent 4211ca9b9b
commit 07f07c34d8
2 changed files with 6 additions and 2 deletions

View File

@@ -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)

View File

@@ -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)