Skip to content

Commit d899d80

Browse files
authored
Enable writing ComplexTypeBoiler from OPC UA Clients (#421)
* * Allow OPC UA Write to OverheatInterval, MaintenanceInterval and OverheatThresholdDegrees * restart timers for intervals * Add test to verify successful write and read of ParameterSet nodes * Update deprecated github actions * fix codeql compilation error * avoid compiler/lang features * Update version * Make ComplexType BoilerStatus writable * Increase version for next release * Rename test method * removed commend out code * update outdated nuget packages * * Allow OPC UA Write to OverheatInterval, MaintenanceInterval and OverheatThresholdDegrees * restart timers for intervals * Add test to verify successful write and read of ParameterSet nodes * fix codeql compilation error * avoid compiler/lang features * Update version * allow writing complext type boiler from OPC UA client by using the server EncodeableFactory from the PlcNodeManager
1 parent d99b21a commit d899d80

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/PlcNodeManager.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ public PlcNodeManager(IServerInternal server, OpcPlcConfiguration config, Applic
2323
PlcSimulationInstance = plcSimulation;
2424
_pluginNodes = pluginNodes;
2525
_logger = logger;
26-
SystemContext.NodeIdFactory = this;
26+
SystemContext.NodeIdFactory = this;
27+
SystemContext.EncodeableFactory = Server.Factory;
2728
}
2829

2930
public PlcSimulation PlcSimulationInstance { get; }
@@ -241,7 +242,7 @@ public void LoadPredefinedNodes(Func<ISystemContext, NodeStateCollection> loadPr
241242
public void AddPredefinedNode(NodeState node)
242243
{
243244
base.AddPredefinedNode(SystemContext, node);
244-
}
245+
}
245246

246247
protected override NodeStateCollection LoadPredefinedNodes(ISystemContext context)
247248
{

version.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
3-
"version": "2.12.34",
3+
"version": "2.12.35",
44
"versionHeightOffset": -1,
55
"publicReleaseRefSpec": [
66
"^refs/heads/main$",

0 commit comments

Comments
 (0)