I'm trying to send 4098 byte packages over UDP. Packages with 2048 bytes or less arrive without a problem, but when I try to send larger packages they get truncated. The first 2048 bytes arrive and the rest disappears. I've adjusted the packet size in my script on the PC side and I tried to adjust the socketSize on the Teensy 4.1 using:
Does anyone have an idea how to solve this?
Alternatively a less ideal solution is to break the 4098 byte package into smaller packages, however than I must be able to distinguish the different packages from each other on the receiving side. What would be a good way to do this?
Code:
Ethernet.setStackHeap(1024 * 64);
Ethernet.setSocketSize(1024 * 4);
Ethernet.setSocketNum(6);
Ethernet.begin(mac);
Does anyone have an idea how to solve this?
Alternatively a less ideal solution is to break the 4098 byte package into smaller packages, however than I must be able to distinguish the different packages from each other on the receiving side. What would be a good way to do this?