Thanks for all that Shawn!
I've been a C programmer for decades but have not used C++ much so the difference between the static cast and the implicit cast was lost on me. Thanks for explaining why one worked and the other didn't!
Looking into...
@shawn Yeah, I found some time yesterday to have a quick look at switching ArduinoWebsockets to use QNEthernet, and it wasn't hard at all. I know more now than I did when I tried it last time.
First, there are two files that include...
Actually, now that I've dug deeper into the code and understand more, I don't know why it was having such problems compiling. I don't remember the actual errors. Because ArduinoWebSockets is set up to support a wide range of hardware, it's got a...
Thanks, yeah, I noticed. At work, I have been testing QNEthernet, and we are planning on dumping WebSockets (sort of the wrong option to begin with) for our robot, and switching to a UDP protocol. But when I see bugs, it's hard for me not to...
The NativeEthernet ethernet library does not seem to be supported by it's author any more.
QNEthernet has become the defacto library to use.
It is well maintained by it's author who is a frequent visitor to this forum.
I traced this bug down to the NativeEthernet library this weekend.
See my write-up and some code that seems to fix it in this issue: https://github.com/vjmuzik/NativeEthernet/issues/36
And in this issue for ArduinoWebSockets...
I spent Sunday chasing deeper into this and learned more.
The bug is (as I suspected) triggered when the WebSocket message is too large to fit in a single 1500-byte Ethernet packet and is split across two (or more) packets.
The WebSocket code...
I'm running into a bug on a Teensy4.1 used in a robotics application using WebSockets to receive information from a web server. If the packets sent are over about the size of a single ethernet packet, they are corrupted. This appears to be a...