Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Fixed serial port implementation

Rainer Hitzadcb46c20611
diff --git a/agent/src/main/java/org/openremote/agent/protocol/serial/SerialIoClient.java b/agent/src/main/java/org/openremote/agent/protocol/serial/SerialIoClient.java
index 21385b799..567db9318 100644
--- a/agent/src/main/java/org/openremote/agent/protocol/serial/SerialIoClient.java
+++ b/agent/src/main/java/org/openremote/agent/protocol/serial/SerialIoClient.java
@@ -21,7 +21,7 @@ package org.openremote.agent.protocol.serial;
import io.netty.channel.Channel;
import io.netty.channel.ChannelFuture;
-import io.netty.channel.nio.NioEventLoopGroup;
+import io.netty.channel.oio.OioEventLoopGroup;
import org.openremote.agent.protocol.ProtocolExecutorService;
import org.openremote.agent.protocol.io.AbstractNettyIoClient;
import org.openremote.agent.protocol.io.IoClient;
@@ -64,8 +64,9 @@ public class SerialIoClient<T> extends AbstractNettyIoClient<T, NrJavaSerialAddr
return "serial://" + port;
}
+ @SuppressWarnings("deprecation")
@Override
protected io.netty.channel.EventLoopGroup getWorkerGroup() {
- return new NioEventLoopGroup(1);
+ return new OioEventLoopGroup(1);
}
}