测试:2419385串口1统计没有收到d331,改用TCP推d331
This commit is contained in:
parent
4f3eeaef93
commit
1690dd70bd
@ -56,6 +56,9 @@ public class D331RtcmMessageExecutor implements Executor<D331RtcmMessage, Void>
|
|||||||
if(deviceId.equals("2419385")){
|
if(deviceId.equals("2419385")){
|
||||||
DeviceChannel channel = OnlineChannels.INSTANCE.getConfigChannel(deviceId);
|
DeviceChannel channel = OnlineChannels.INSTANCE.getConfigChannel(deviceId);
|
||||||
if(channel != null && channel.isOnline()){
|
if(channel != null && channel.isOnline()){
|
||||||
|
if (logger.isDebugEnabled()) {
|
||||||
|
logger.debug("forward d331 rtcm message to device {} tcp", deviceId);
|
||||||
|
}
|
||||||
ByteBuf buf = Unpooled.buffer();
|
ByteBuf buf = Unpooled.buffer();
|
||||||
buf.writeBytes(forwardBytes);
|
buf.writeBytes(forwardBytes);
|
||||||
channel.writeAndFlush(buf);
|
channel.writeAndFlush(buf);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user