You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@plc4x.apache.org by "doleron (via GitHub)" <gi...@apache.org> on 2024/07/05 17:46:42 UTC
Re: [I] [Bug]: S7 connection problem
doleron commented on issue #1593:
URL: https://github.com/apache/plc4x/issues/1593#issuecomment-2211172457
I agreed with @chrisdutz . I'm experiencing the same issue of `io.netty.handler.codec.EncoderException` flooding. Meanwhile, my workaround was to silence all WARNs like follows:
```java
public static void main(String[] args) {
System.setProperty(SimpleLogger.DEFAULT_LOG_LEVEL_KEY, "Error");
Logger logger = LoggerFactory.getLogger(Main.class);
String connectionString = "s7://192.168.26.39?remote-rack:0&remote-slot:2&controller-type:S7_300";
PlcConnection plcConnection = null;
try {
plcConnection = PlcDriverManager.getDefault().getConnectionManager()
.getConnection(connectionString);
//...
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@plc4x.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org