Updated
This commit is contained in:
1 parent
2c5b69bf2c
commit
22dee59f47
132 files changed
+19653
-7192
No files matched your search
@@ -0,0 +1,7 @@
|
||||
namespace EonaCat.Connections.OpcUa.Models;
|
||||
|
||||
public sealed class OpcUaConnectionEventArgs : EventArgs
|
||||
{
|
||||
public required string EndpointUrl { get; init; }
|
||||
public string? SessionName { get; init; }
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using Opc.Ua;
|
||||
|
||||
namespace EonaCat.Connections.OpcUa.Models;
|
||||
|
||||
public sealed record OpcUaMethodArgument(string Name, NodeId DataType, string? Description = null);
|
||||
|
||||
public sealed record OpcUaMethodDefinition(
|
||||
string Identifier,
|
||||
string DisplayName,
|
||||
IReadOnlyList<OpcUaMethodArgument> InputArguments,
|
||||
IReadOnlyList<OpcUaMethodArgument> OutputArguments,
|
||||
Func<IReadOnlyList<object?>, IReadOnlyList<object?>> Handler,
|
||||
string? Description = null);
|
||||
@@ -0,0 +1,11 @@
|
||||
using Opc.Ua;
|
||||
|
||||
namespace EonaCat.Connections.OpcUa.Models;
|
||||
|
||||
public sealed record OpcUaNodeDefinition(
|
||||
string Identifier,
|
||||
string DisplayName,
|
||||
NodeId DataType,
|
||||
object? InitialValue = null,
|
||||
byte AccessLevel = AccessLevels.CurrentReadOrWrite,
|
||||
string? Description = null);
|
||||
@@ -0,0 +1,11 @@
|
||||
using Opc.Ua;
|
||||
|
||||
namespace EonaCat.Connections.OpcUa.Models;
|
||||
|
||||
public sealed class OpcUaValueChangedEventArgs : EventArgs
|
||||
{
|
||||
public required NodeId NodeId { get; init; }
|
||||
public object? Value { get; init; }
|
||||
public StatusCode StatusCode { get; init; }
|
||||
public DateTime SourceTimestamp { get; init; }
|
||||
}
|
||||
Reference in new issue
Block a user