arduino / arduino/ArduinoCore-mbed
giga_r1_wifi Udp.read() skips first byte of UDP packets
未关闭
适合新手
bug
GIGA
Portenta
WiFi
- 主要语言
- C
- 星标
- 411
- 派生
- 225
- PR 合并指标
- 30 天内没有已合并 PR
描述
https://github.com/arduino/ArduinoCore-mbed/blob/cdaa048b4ef1f835f8676382bba3dacbd7efe349/libraries/SocketWrapper/src/MbedUdp.cpp#L142
When parsePacket() returns non-zero, _current_packet pointer is incremented, skipping over the first byte. The function returns _current_packet[0] which is the second byte.
贡献指南
这个仓库没有索引到贡献指南
调研方向
从 libraries/SocketWrapper/src/MbedUdp.cpp 第 142 行附近开始,跟踪 parsePacket() 如何在 Udp.read() 返回数据之前更新 _current_packet。验证 UDP 数据包的第一个字节会被保留并返回,而不是被跳过;当读取行为与完整的数据包内容一致时即完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- c
- 领域
- embedded-iot, networking
- Issue 类型
- 缺陷
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 描述清楚
- 新手友好度
- 72/100