fix: ntripcaster
This commit is contained in:
parent
fbde58faf6
commit
a170fef04b
@ -282,17 +282,19 @@ public class D331RtcmMessageExecutor implements Executor<D331RtcmMessage, Void>
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void sendToNtrip(String deviceId, String hexData) {
|
private void sendToNtrip(String deviceId, String hexData) {
|
||||||
// 检查设备是否启用TCP转发
|
|
||||||
if (!rtcmPortConfigManager.isDeviceEnabled(deviceId)) {
|
|
||||||
logger.info("Device {} not enabled for TCP forwarding", deviceId);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
Optional.ofNullable(RtcmGgaUtil.getRtcms(hexData))
|
Optional.ofNullable(RtcmGgaUtil.getRtcms(hexData))
|
||||||
.ifPresent(rtcm -> {
|
.ifPresent(rtcm -> {
|
||||||
//System.out.println("挂载点: " + mountpoint);
|
//System.out.println("挂载点: " + mountpoint);
|
||||||
//System.out.println("RTCM数据: " + rtcm);
|
//System.out.println("RTCM数据: " + rtcm);
|
||||||
ntripServer.send(deviceId, rtcm);
|
ntripServer.send(deviceId, rtcm);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// 检查设备是否启用TCP转发
|
||||||
|
if (!rtcmPortConfigManager.isDeviceEnabled(deviceId)) {
|
||||||
|
logger.info("Device {} not enabled for TCP forwarding", deviceId);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// 添加原始数据日志
|
// 添加原始数据日志
|
||||||
logger.info("Processing hex data for device {}, data length: {}", deviceId, hexData.length());
|
logger.info("Processing hex data for device {}, data length: {}", deviceId, hexData.length());
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user