fix: 调整Camera的taskID,使其能够正常接受数据

This commit is contained in:
2025-07-03 19:30:17 +08:00
parent e84a784517
commit 287c416247
2 changed files with 5 additions and 8 deletions

View File

@@ -42,14 +42,14 @@ class Camera
public async ValueTask<Result<byte[]>> ReadFrame()
{
// 清除UDP服务器接收缓冲区
await MsgBus.UDPServer.ClearUDPData(this.address, 3);
await MsgBus.UDPServer.ClearUDPData(this.address, 2);
logger.Trace($"Clear up udp server {this.address} receive data");
// 使用UDPClientPool读取图像帧数据
var result = await UDPClientPool.ReadAddrBytes(
this.ep,
3, // taskID
2, // taskID
CameraAddr.Base,
(int)CameraAddr.FrameLength,
this.timeout);