100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
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.javaindex 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, NrJavaSerialAddrreturn "serial://" + port;}+ @SuppressWarnings("deprecation")@Overrideprotected io.netty.channel.EventLoopGroup getWorkerGroup() {- return new NioEventLoopGroup(1);+ return new OioEventLoopGroup(1);}}