Skip to content

Commit

Permalink
Update input_client.go
Browse files Browse the repository at this point in the history
  • Loading branch information
Digitomation authored Nov 16, 2024
1 parent fe4246f commit 389ea9a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/common/opcua/input/input_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,11 @@ func (o *OpcUAInputClient) UpdateNodeValue(nodeIdx int, d *ua.DataValue) {
o.LastReceivedData[nodeIdx].Value = t.Format(o.Config.TimestampFormat)
}
}
if o.LastReceivedData[nodeIdx].DataType == ua.TypeIDLocalizedText {
if t, ok := d.Value.Value().(*ua.LocalizedText); ok {
o.LastReceivedData[nodeIdx].Value = t.Text
}
}
}
o.LastReceivedData[nodeIdx].ServerTime = d.ServerTimestamp
o.LastReceivedData[nodeIdx].SourceTime = d.SourceTimestamp
Expand Down

0 comments on commit 389ea9a

Please sign in to comment.