mirror of
https://github.com/rightup/pyMC_Repeater.git
synced 2026-04-30 18:52:14 +02:00
feat: update raw packet handling in StorageCollector and RepeaterHandler
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user