Skip to content

Commit

Permalink
Update plc4x dependency to 0.12.0
Browse files Browse the repository at this point in the history
Update plc4x dependency to 0.12.0

Signed-off-by: Łukasz Dywicki <[email protected]>
  • Loading branch information
splatch authored Mar 5, 2024
1 parent 0a69fcd commit 23af66d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ public void run() {
}
}

String target = "targetAmsNetId=" + config.targetAmsId + "&targetAmsPort=" + config.targetAmsPort;
String source = "&sourceAmsNetId=" + amsAds.sourceAmsId + "&sourceAmsPort=" + amsAds.sourceAmsPort;
String target = "target-ams-net-id=" + config.targetAmsId + "&target-ams-port=" + config.targetAmsPort;
String source = "&source-ams-net-id=" + amsAds.sourceAmsId + "&source-ams-port=" + amsAds.sourceAmsPort;
String extraOpts = "&load-symbol-and-data-type-tables=false";

PlcConnection connection = driverManager.getConnectionManager().getConnection("ads:tcp://" + config.host + "?" + target + source + extraOpts);
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/
package org.connectorio.addons.binding.s7.internal.config;

import org.apache.plc4x.java.s7.readwrite.ControllerType;
import org.connectorio.addons.binding.config.PollingConfiguration;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public void run() {
String local = "local-slot=" + config.localSlot + "&local-rack=" + config.localRack;
String remote = "&remote-slot=" + config.remoteSlot + "&remote-rack=" + config.remoteRack;
String pdu = config.pduSize != null ? "&pdu-size=" + config.pduSize : "";
String type = config.controllerType != null ? "&controller-type=" + config.controllerType.getType().name() : "";
String type = config.controllerType != null ? "&controller-type=" + config.controllerType.name() : "";
PlcConnection connection = driverManager.getConnectionManager()
.getConnection("s7://" + config.host + "?" + local + remote + pdu + type);

Expand Down
2 changes: 1 addition & 1 deletion parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<compiler.source>11</compiler.source>
<compiler.target>11</compiler.target>

<plc4x-extras.version>0.11.1-connectorio-1</plc4x-extras.version>
<plc4x-extras.version>0.12.0</plc4x-extras.version>
<bacnet4j-wrapper.version>1.3.0-beta1</bacnet4j-wrapper.version>

<openhab.version>3.0.4</openhab.version>
Expand Down

0 comments on commit 23af66d

Please sign in to comment.