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
Thank you so much for writing this tool.
It's been super helpful.
Unfortunately we ran into an issue where all our status code, etc. showed up as 0 on our dashboards.
The issues seems to be the conversion from the opcua datatype to a float.
I managed fix my local copy by adding this simple switch statement to the GetOpcuaValueFromIndex method.
switch r.Value.Type() {
case ua.TypeIDInt16:
fallthrough
case ua.TypeIDInt32:
fallthrough
case ua.TypeIDInt64:
fallthrough
case ua.TypeIDUint16:
fallthrough
case ua.TypeIDUint32:
fallthrough
case ua.TypeIDUint64:
return float64(r.Value.Int()), nil
}
return r.Value.Float(), nil
I'll create a quick PR for you to look at.
The text was updated successfully, but these errors were encountered:
Thank you for your contribution 🙏 and sorry for the delay.
We have already changed the architecture of this software. I will do my best to update the repository ASAP. Meanwhile, here is the function we use to extract the values. You can use it until the repository is updated.
Thank you so much for writing this tool.
It's been super helpful.
Unfortunately we ran into an issue where all our status code, etc. showed up as 0 on our dashboards.
The issues seems to be the conversion from the opcua datatype to a float.
I managed fix my local copy by adding this simple switch statement to the GetOpcuaValueFromIndex method.
I'll create a quick PR for you to look at.
The text was updated successfully, but these errors were encountered: