Archived
Working data ingress into live data buffer
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user