Update mesh-bot.py

This commit is contained in:
SpudGunMan
2024-06-18 23:55:41 -07:00
parent 1fd13f98a1
commit fcc16e27eb

View File

@@ -9,6 +9,8 @@ import meshtastic.serial_interface #pip install meshtastic
import meshtastic.tcp_interface
import meshtastic.ble_interface
from datetime import datetime
import sys
from solarconditions import * # from the spudgunman/meshing-around repo
@@ -150,6 +152,8 @@ def onReceive(packet, interface):
except KeyError as e:
print(f"System: Error processing packet: {e}")
#get line number of error
print(sys.exc_info()[-1].tb_lineno)
print(packet) # print the packet for debugging
print("END of packet \n")