Update mesh_bot.py

This commit is contained in:
SpudGunMan
2024-09-01 21:51:21 -07:00
parent 0a29e5f156
commit f703a8868b

View File

@@ -327,6 +327,8 @@ def onReceive(packet, interface):
send_message(message, channel_number, message_from_id, rxNode)
# check for a message packet and process it
snr = 0
rssi = 0
try:
if 'decoded' in packet and packet['decoded']['portnum'] == 'TEXT_MESSAGE_APP':
message_bytes = packet['decoded']['payload']