Skip to content

Commit

Permalink
refactor: Added S7-400 to the list of supported devices.
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdutz committed Mar 13, 2024
1 parent 7203ad8 commit ad92e6a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public boolean isConnected() {
public boolean isSubscribeSupported() {
Plc4xProtocolBase<?> protocol = getProtocol();
S7DriverContext s7driverContext = (S7DriverContext) protocol.getDriverContext();
return s7driverContext.getControllerType() == ControllerType.S7_300;
return (s7driverContext.getControllerType() == ControllerType.S7_300) || (s7driverContext.getControllerType() == ControllerType.S7_400);
}

public void doPrimaryTcpConnections() {
Expand Down

0 comments on commit ad92e6a

Please sign in to comment.