1、回退,不用TCP推送
This commit is contained in:
parent
c7fbc83010
commit
787759d7d3
@ -52,18 +52,6 @@ public class D331RtcmMessageExecutor implements Executor<D331RtcmMessage, Void>
|
|||||||
for (Device device : deviceList) {
|
for (Device device : deviceList) {
|
||||||
if (device.getOpMode() != GnssDevice.OP_MODE_USE) continue;
|
if (device.getOpMode() != GnssDevice.OP_MODE_USE) continue;
|
||||||
String deviceId = device.getDeviceId();
|
String deviceId = device.getDeviceId();
|
||||||
/*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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else {*/
|
|
||||||
OnlineChannels.INSTANCE.get(deviceId).ifPresent(deviceChannel -> {
|
OnlineChannels.INSTANCE.get(deviceId).ifPresent(deviceChannel -> {
|
||||||
if (logger.isDebugEnabled()) {
|
if (logger.isDebugEnabled()) {
|
||||||
logger.debug("forward d331 rtcm message to device {}", deviceId);
|
logger.debug("forward d331 rtcm message to device {}", deviceId);
|
||||||
@ -75,7 +63,6 @@ public class D331RtcmMessageExecutor implements Executor<D331RtcmMessage, Void>
|
|||||||
buf.writeBytes(forwardBytes);
|
buf.writeBytes(forwardBytes);
|
||||||
deviceChannel.writeAndFlush(buf);
|
deviceChannel.writeAndFlush(buf);
|
||||||
});
|
});
|
||||||
//}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user