You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem events from drivers have a src object that isn't the scada, and when parsed in gridworks-debug-cli, these end up with Src from the Event, even though the received Header has the correct Src of the generating scada. Does the decoder do this?
For example:
d = {
"Header": {"Src": "FOO", "MessageType": "."},
"Payload": {"Src": "BAR",},
}
m = Message.parse_obj(d)
assert m.src() == "BAR"
d["Header"] = Header.parse_obj(d.get("Header", dict()))
m = Message.parse_obj(d)
assert m.src() == "BAR"
d["Src"] = "FOO"
m = Message.parse_obj(d)
assert m.src() == "FOO"
I believe all of these should have src of "FOO".
If they aren't consistent that should be documented.
The text was updated successfully, but these errors were encountered:
Problem events from drivers have a src object that isn't the scada, and when parsed in gridworks-debug-cli, these end up with Src from the Event, even though the received Header has the correct Src of the generating scada. Does the decoder do this?
For example:
I believe all of these should have src of "FOO".
If they aren't consistent that should be documented.
The text was updated successfully, but these errors were encountered: