fix: initialize SDK telemetry and preserve ByteString boundaries
This commit is contained in:
@@ -6574,7 +6574,7 @@ public sealed class OtOpcUaNodeManager : CustomNodeManager2
|
||||
return leaf switch
|
||||
{
|
||||
// BaseEventType/EventId is a ByteString — encode the driver-specific string id as UTF-8 bytes.
|
||||
"EventId" => new Variant(System.Text.Encoding.UTF8.GetBytes(evt.EventId ?? string.Empty)),
|
||||
"EventId" => Variant.From(ByteString.From(System.Text.Encoding.UTF8.GetBytes(evt.EventId ?? string.Empty))),
|
||||
"EventType" => new Variant(eventType),
|
||||
"SourceName" => evt.SourceName is null ? Variant.Null : new Variant(evt.SourceName),
|
||||
"SourceNode" => SourceNodeOf(evt) is { } source ? new Variant(source) : Variant.Null,
|
||||
|
||||
Reference in New Issue
Block a user