feat: update raw packet handling in StorageCollector and RepeaterHandler

This commit is contained in:
Lloyd
2025-11-18 23:05:34 +00:00
parent 785cdd60f7
commit 8ef2d3997d
2 changed files with 2 additions and 2 deletions

View File

@@ -69,7 +69,7 @@ class StorageCollector:
# Publish to LetsMesh if enabled
if self.letsmesh_handler:
try:
# Only publish raw packet data if raw_packet exists
# Publish raw packet data if available
if "raw_packet" in packet_record and packet_record["raw_packet"]:
self.letsmesh_handler.publish_raw_data(packet_record["raw_packet"])
except Exception as e:

View File

@@ -231,7 +231,7 @@ class RepeaterHandler(BaseHandler):
"forwarded_path": (
[f"{b:02X}" for b in forwarded_path] if forwarded_path is not None else None
),
"raw_packet": packet.write_to().hex() if hasattr(packet, "write_to") else None,
}
# Store packet record to persistent storage