mirror of
https://github.com/pyMC-dev/pyMC_Repeater.git
synced 2026-08-09 18:33:14 +02:00
feat: publish crc_records to mqtt
This commit is contained in:
@@ -199,7 +199,7 @@ class StorageCollector:
|
||||
"""Record a batch of CRC errors detected since last poll."""
|
||||
crc_record = {"timestamp": time.time(), "count": count}
|
||||
self.sqlite_handler.store_crc_errors(crc_record)
|
||||
#self.old_mqtt_handler.publish(crc_record, "crc_errors")
|
||||
self.mqtt_handler.publish_mqtt("crc_errors", crc_record)
|
||||
|
||||
def get_crc_error_count(self, hours: int = 24) -> int:
|
||||
return self.sqlite_handler.get_crc_error_count(hours)
|
||||
|
||||
Reference in New Issue
Block a user