Merge B1-focas: v3 RawPath read-path
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using CliFx.Attributes;
|
||||
using ZB.MOM.WW.OtOpcUa.Core.Abstractions;
|
||||
using ZB.MOM.WW.OtOpcUa.Driver.Cli.Common;
|
||||
|
||||
namespace ZB.MOM.WW.OtOpcUa.Driver.FOCAS.Cli;
|
||||
@@ -54,7 +55,11 @@ public abstract class FocasCommandBase : DriverCommandBase
|
||||
HostAddress: HostAddress,
|
||||
DeviceName: $"cli-{CncHost}:{CncPort}",
|
||||
Series: Series)],
|
||||
Tags = tags,
|
||||
// v3: turn each typed def into the RawTagEntry delivery unit — TagConfig blob via
|
||||
// FocasTagDefinitionFactory.ToTagConfig, keyed by the def's synthesised name (RawPath), routed to
|
||||
// the device by the def's DeviceHostAddress (which the driver matches against Devices).
|
||||
RawTags = [.. tags.Select(t => new RawTagEntry(
|
||||
t.Name, FocasTagDefinitionFactory.ToTagConfig(t), t.WriteIdempotent, t.DeviceHostAddress))],
|
||||
Timeout = Timeout,
|
||||
Probe = new FocasProbeOptions { Enabled = false },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user