feat(cli): read --attribute reads one node attribute (e.g. Historizing, AccessLevel) (#921)

This commit is contained in:
Joseph Doherty
2026-11-28 09:28:59 -05:00
parent 05f431f5d8
commit a2a1104f20
7 changed files with 106 additions and 3 deletions
@@ -223,6 +223,14 @@ public sealed class OpcUaClientService : IOpcUaClientService
return await _session!.ReadValueAsync(nodeId, maximumAge, ct);
}
/// <inheritdoc />
public async Task<DataValue> ReadAttributeAsync(NodeId nodeId, uint attributeId, CancellationToken ct = default)
{
ThrowIfDisposed();
ThrowIfNotConnected();
return await _session!.ReadAttributeAsync(nodeId, attributeId, ct);
}
/// <inheritdoc />
public async Task<StatusCode> WriteValueAsync(NodeId nodeId, object value, CancellationToken ct = default)
{