You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ze...@apache.org on 2020/06/18 09:16:10 UTC

[incubator-streampipes-extensions] branch dev updated: [STREAMPIPES-165] S7 adpater does not work Change the URL string for the s7 plc4x adapter

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

zehnder pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes-extensions.git


The following commit(s) were added to refs/heads/dev by this push:
     new 9a5a6de    [STREAMPIPES-165] S7 adpater does not work   Change the URL string for the s7 plc4x adapter
9a5a6de is described below

commit 9a5a6de4c598c15131956be77c44954a36359adb
Author: Philipp Zehnder <ze...@fzi.de>
AuthorDate: Thu Jun 18 11:15:13 2020 +0200

      [STREAMPIPES-165] S7 adpater does not work
      Change the URL string for the s7 plc4x adapter
---
 .../apache/streampipes/connect/adapters/plc4x/s7/Plc4xS7Adapter.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/plc4x/s7/Plc4xS7Adapter.java b/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/plc4x/s7/Plc4xS7Adapter.java
index 6f8d29a..c118d4e 100644
--- a/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/plc4x/s7/Plc4xS7Adapter.java
+++ b/streampipes-connect-adapters/src/main/java/org/apache/streampipes/connect/adapters/plc4x/s7/Plc4xS7Adapter.java
@@ -182,7 +182,8 @@ public class Plc4xS7Adapter extends PullAdapter {
         getConfigurations(adapterDescription);
 
         try {
-            this.plcConnection= new PlcDriverManager().getConnection("s7://" + this.ip + "/1/1");
+//            this.plcConnection= new PlcDriverManager().getConnection("s7://" + this.ip + "/1/1");
+            this.plcConnection= new PlcDriverManager().getConnection("s7://" + this.ip);
 
             if (!this.plcConnection.getMetadata().canRead()) {
                 throw new AdapterException("The S7 on IP: " + this.ip + " does not support reading data");