You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2022/07/27 15:51:12 UTC
[plc4x] branch develop updated: fix(plc-simulator): fixed some issues in the plc-simulator
This is an automated email from the ASF dual-hosted git repository.
sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/develop by this push:
new cbf832549 fix(plc-simulator): fixed some issues in the plc-simulator
cbf832549 is described below
commit cbf8325494890a0ee7c65652f68e3812357ee127
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Wed Jul 27 17:51:05 2022 +0200
fix(plc-simulator): fixed some issues in the plc-simulator
---
.../simulator/server/cbus/protocol/CBusServerAdapter.java | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
diff --git a/sandbox/plc-simulator/src/main/java/org/apache/plc4x/simulator/server/cbus/protocol/CBusServerAdapter.java b/sandbox/plc-simulator/src/main/java/org/apache/plc4x/simulator/server/cbus/protocol/CBusServerAdapter.java
index 74f98ad01..48a5f6d46 100644
--- a/sandbox/plc-simulator/src/main/java/org/apache/plc4x/simulator/server/cbus/protocol/CBusServerAdapter.java
+++ b/sandbox/plc-simulator/src/main/java/org/apache/plc4x/simulator/server/cbus/protocol/CBusServerAdapter.java
@@ -68,6 +68,8 @@ public class CBusServerAdapter extends ChannelInboundHandlerAdapter {
CBusCommand cbusCommand = requestCommand.getCbusCommand();
LOGGER.info("Handling CBusCommand\n{}", cbusCommand);
if (cbusCommand instanceof CBusCommandPointToPoint) {
+ CBusCommandPointToPoint cBusCommandPointToPoint = (CBusCommandPointToPoint) cbusCommand;
+ LOGGER.info("Handling CBusCommandPointToPoint\n{}", cBusCommandPointToPoint);
// TODO: handle this
return;
}
@@ -99,6 +101,8 @@ public class CBusServerAdapter extends ChannelInboundHandlerAdapter {
return;
}
if (statusRequest instanceof StatusRequestBinaryStateDeprecated) {
+ StatusRequestBinaryStateDeprecated statusRequestBinaryStateDeprecated = (StatusRequestBinaryStateDeprecated) statusRequest;
+ LOGGER.info("Handling StatusRequestBinaryStateDeprecated\n{}", statusRequestBinaryStateDeprecated);
// TODO: handle this
return;
}
@@ -126,18 +130,23 @@ public class CBusServerAdapter extends ChannelInboundHandlerAdapter {
// TODO: handle this
return;
}
- if (command instanceof Normal) {
- // TODO: handle this
+ if (command instanceof CBusPointToMultiPointCommandNormal) {
+ CBusPointToMultiPointCommandNormal cBusPointToMultiPointCommandNormal = (CBusPointToMultiPointCommandNormal) command;
+ LOGGER.info("Handling CBusPointToMultiPointCommandNormal\n{}", cBusPointToMultiPointCommandNormal);
return;
}
// TODO: handle this
return;
}
if (cbusCommand instanceof CBusCommandPointToPointToMultiPoint) {
+ CBusCommandPointToPointToMultiPoint cBusCommandPointToPointToMultiPoint = (CBusCommandPointToPointToMultiPoint) cbusCommand;
+ LOGGER.info("Handling CBusCommandPointToPointToMultiPoint\n{}", cBusCommandPointToPointToMultiPoint);
// TODO: handle this
return;
}
if (cbusCommand instanceof CBusCommandDeviceManagement) {
+ CBusCommandDeviceManagement cBusCommandDeviceManagement = (CBusCommandDeviceManagement) cbusCommand;
+ LOGGER.info("Handling CBusCommandDeviceManagement\n{}", cBusCommandDeviceManagement);
// TODO: handle this
return;
}