[opcuaclient] OpcUaClient — Per-subscription tuning #331
Reference in New Issue
Block a user
Delete Branch "auto/opcuaclient/1"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Lifts hard-coded OPC UA subscription parameters into a configurable
OpcUaSubscriptionDefaultsrecord onOpcUaClientDriverOptions.Subscriptions:KeepAliveCount = 10LifetimeCount = 1000MaxNotificationsPerPublish = 0(unlimited per OPC UA spec)Priority = 0(data subscription)MinPublishingIntervalMs = 50(replaces the prior 50ms hard-coded floor)AlarmsPriority = 1(alarm subscription gets a higher priority so alarms aren't starved during data bursts)Wired into both
SubscribeAsync(data path) andSubscribeAlarmsAsync(alarm path). Defaults exactly match prior hard-coded values — zero behavior change for existing deployments.Test plan
dotnet build src/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient— clean (0 / 0)dotnet test tests/ZB.MOM.WW.OtOpcUa.Driver.OpcUaClient.Tests— 80 / 80 passed (2 new inOpcUaClientDriverScaffoldTests: back-compat defaults assertion, overrides-flow-through assertion)🤖 Auto-generated by the Mode-B execution loop. Closes #273.
Closes #273