测试:2419385串口1统计没有收到d331,改用TCP推d331

This commit is contained in:
weidong 2024-06-16 00:12:04 +08:00
parent 4f3eeaef93
commit 1690dd70bd

View File

@ -56,6 +56,9 @@ public class D331RtcmMessageExecutor implements Executor<D331RtcmMessage, Void>
if(deviceId.equals("2419385")){
DeviceChannel channel = OnlineChannels.INSTANCE.getConfigChannel(deviceId);
if(channel != null && channel.isOnline()){
if (logger.isDebugEnabled()) {
logger.debug("forward d331 rtcm message to device {} tcp", deviceId);
}
ByteBuf buf = Unpooled.buffer();
buf.writeBytes(forwardBytes);
channel.writeAndFlush(buf);