Prevent ECU polling from hanging on stalled sockets

This commit is contained in:
Tanner
2026-11-03 16:24:25 +00:00
parent 518b422915
commit a3963ff91b
2 changed files with 39 additions and 23 deletions
+4 -1
View File
@@ -152,7 +152,10 @@ async def get_data():
client.write_points(points)
logging.info('Wrote %s points to InfluxDB', len(points))
else:
logging.info(
'ECU poll completed; no new sample (ECU time: %s)',
data['timestamp'])
prev_ecu_timestamp = data['timestamp']