You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2023/02/03 09:20:31 UTC

[streampipes] branch dev updated: [hotfix] Fix modbus connection string

This is an automated email from the ASF dual-hosted git repository.

riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/streampipes.git


The following commit(s) were added to refs/heads/dev by this push:
     new a56415ac5 [hotfix] Fix modbus connection string
a56415ac5 is described below

commit a56415ac5ce82603dad9ef5d13b7389fd69a1a9c
Author: Dominik Riemer <do...@gmail.com>
AuthorDate: Fri Feb 3 10:20:21 2023 +0100

    [hotfix] Fix modbus connection string
---
 .../connect/iiot/adapters/plc4x/modbus/Plc4xModbusAdapter.java          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/streampipes-extensions/streampipes-connect-adapters-iiot/src/main/java/org/apache/streampipes/connect/iiot/adapters/plc4x/modbus/Plc4xModbusAdapter.java b/streampipes-extensions/streampipes-connect-adapters-iiot/src/main/java/org/apache/streampipes/connect/iiot/adapters/plc4x/modbus/Plc4xModbusAdapter.java
index 8203bcf19..bde53fdcd 100644
--- a/streampipes-extensions/streampipes-connect-adapters-iiot/src/main/java/org/apache/streampipes/connect/iiot/adapters/plc4x/modbus/Plc4xModbusAdapter.java
+++ b/streampipes-extensions/streampipes-connect-adapters-iiot/src/main/java/org/apache/streampipes/connect/iiot/adapters/plc4x/modbus/Plc4xModbusAdapter.java
@@ -228,7 +228,7 @@ public class Plc4xModbusAdapter extends PullAdapter {
 
     try {
       this.plcConnection = new PlcDriverManager().getConnection(
-          "modbus:tcp://" + this.ip + ":" + this.port + "?unit-identifier=" + this.slaveID);
+          "modbus-tcp:tcp://" + this.ip + ":" + this.port + "?unit-identifier=" + this.slaveID);
 
       if (!this.plcConnection.getMetadata().canRead()) {
         throw new AdapterException("The Modbus device on IP: " + this.ip + " does not support reading data");