Skip to content

Commit

Permalink
fix(plc-simulator): fixed some issues in the plc-simulator
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Jul 27, 2022
1 parent 6dfa26e commit cbf8325
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception
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;
}
Expand Down Expand Up @@ -99,6 +101,8 @@ public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception
return;
}
if (statusRequest instanceof StatusRequestBinaryStateDeprecated) {
StatusRequestBinaryStateDeprecated statusRequestBinaryStateDeprecated = (StatusRequestBinaryStateDeprecated) statusRequest;
LOGGER.info("Handling StatusRequestBinaryStateDeprecated\n{}", statusRequestBinaryStateDeprecated);
// TODO: handle this
return;
}
Expand Down Expand Up @@ -126,18 +130,23 @@ public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception
// 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;
}
Expand Down

0 comments on commit cbf8325

Please sign in to comment.