Working data ingress into live data buffer

This commit is contained in:
2026-07-08 12:30:47 +01:00
parent 5887e0d0a0
commit 05bc8bdf25
7 changed files with 131 additions and 55 deletions
+4
View File
@@ -13,6 +13,7 @@ from dynalab_protocol.models import (
HandshakeAccepted,
HandshakeRejected,
Heartbeat,
ValueDescriptor,
VersionDescriptor,
machine_timestamp_ms,
)
@@ -100,6 +101,9 @@ async def _handle_connector(
state.last_heartbeat[connector_hello.connector_uuid] = (
message.return_timestamp
)
if isinstance(message, ValueDescriptor):
state.live_data[message.signal_id] = message.value
state.new_data_id.put_nowait(message.signal_id)
except TimeoutError:
continue
except ConnectionError: