mirror of
https://github.com/SpudGunMan/meshing-around.git
synced 2026-08-07 01:13:14 +02:00
Update mesh_bot.py
This commit is contained in:
+3
-3
@@ -955,8 +955,6 @@ def onReceive(packet, interface):
|
||||
if telemetry_packet.get('localStats'):
|
||||
localStats = telemetry_packet['localStats']
|
||||
if localStats.get('numPacketsTx') and localStats.get('numPacketsRx') != 0:
|
||||
if numPacketsRx != 0:
|
||||
print(f"packet {telemetry_packet}")
|
||||
# Assign the values and include rxNode
|
||||
numPacketsTx = (localStats['numPacketsTx'], rxNode)
|
||||
numPacketsRx = (localStats['numPacketsRx'], rxNode)
|
||||
@@ -969,8 +967,10 @@ def onReceive(packet, interface):
|
||||
except KeyError:
|
||||
numPacketsRxErr = (-1, rxNode)
|
||||
#airUtilTx = (round(localStats['airUtilTx'], 2), rxNode)
|
||||
print(f"packet {telemetry_packet}")
|
||||
print(f"injest numPacketsTx, numPacketsRx, numPacketsTxErr, numPacketsRxErr: {numPacketsTx}, {numPacketsRx}, {numPacketsTxErr}, {numPacketsRxErr}")
|
||||
|
||||
# check for BBS DM for mail delivery
|
||||
# BBS DM MAIL CHECKER
|
||||
if bbs_enabled and 'decoded' in packet:
|
||||
message_from_id = packet['from']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user