ArduinoCore-mbed icon indicating copy to clipboard operation
ArduinoCore-mbed copied to clipboard

giga_r1_wifi Udp.read() skips first byte of UDP packets

Open esp32beans opened this issue 2 years ago • 0 comments

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.

esp32beans avatar Mar 25 '23 22:03 esp32beans