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.git


The following commit(s) were added to refs/heads/dev by this push:
     new 6f6ccb4  [hotfix] Fix string for node type in plc adapter
6f6ccb4 is described below

commit 6f6ccb45786528f776c8abd48bdf2b3fc56436f3
Author: Philipp Zehnder <[email protected]>
AuthorDate: Tue Dec 14 15:49:32 2021 +0100

    [hotfix] Fix string for node type in plc adapter
---
 .../streampipes/connect/iiot/adapters/plc4x/s7/Plc4xS7Adapter.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/s7/Plc4xS7Adapter.java
 
b/streampipes-extensions/streampipes-connect-adapters-iiot/src/main/java/org/apache/streampipes/connect/iiot/adapters/plc4x/s7/Plc4xS7Adapter.java
index 46d69a2..04ece8a 100644
--- 
a/streampipes-extensions/streampipes-connect-adapters-iiot/src/main/java/org/apache/streampipes/connect/iiot/adapters/plc4x/s7/Plc4xS7Adapter.java
+++ 
b/streampipes-extensions/streampipes-connect-adapters-iiot/src/main/java/org/apache/streampipes/connect/iiot/adapters/plc4x/s7/Plc4xS7Adapter.java
@@ -193,7 +193,7 @@ public class Plc4xS7Adapter extends PullAdapter {
         try (PlcConnection plcConnection = 
this.driverManager.getConnection("s7://" + this.ip)) {
             PlcReadRequest.Builder builder = 
plcConnection.readRequestBuilder();
             for (Map<String, String> node : this.nodes) {
-                builder.addItem(node.get(PLC_NODE_NAME), 
node.get(PLC_NODE_NAME) + ":" + node.get(PLC_NODE_TYPE).toUpperCase());
+                builder.addItem(node.get(PLC_NODE_NAME), 
node.get(PLC_NODE_NAME) + ":" + 
node.get(PLC_NODE_TYPE).toUpperCase().replaceAll(" ", "_"));
             }
             PlcReadRequest readRequest = builder.build();
 

Reply via email to