I'm using WifiNINA on a Nano RP2040 Connect. I want to send UDP packets, but no joy.
Trying to debug, so far I have confirmed:
- WiFi connection succeeds -- from code on the board I get the same
MAC address and the same local IP address that I can see in my router admin UI - ping succeeds -- calling WiFi.ping() for a variety of internal
and external servers succeed, and I can see the calls and responses
in Wireshark - calls to beginPacket(remoteHost, remotePort) succeed -- return value is 1
- calls to write(buf, numbytes) return numbytes, seeming to indicate that
the requested number of bytes were written to the packet - calls to endPacket() fail -- return value is 0
I have also tried connecting to a web server and making a request;
in this case the connect(server, 80) call apparently succeeds (based
on the return value) but I cannot GET anything from the server and
I do NOT see any connection or GET requests going out to that server
in Wireshark.
What am I overlooking? What strategies can I use to further debug?