#ESP32SPI UDP Sockets

1 messages · Page 1 of 1 (latest)

candid bramble
#

@winter perch what was on the other end of the UDP example for the static IP PR? I couldn't get it to work as-is, but I plugged in my UDP socket client code and set up a CPython server to test that the IP was reachable. I was under the impression that UDP server didn't work on ESP32SPI since there is no bind-equivalent.

#

I may have misinterpreted what the UDP code was doing.

winter perch
#

oh good question, I didn't test the UDP part either, I'm not the orignal author of the PR, maybe it's not relevant to the example ?

candid bramble
#

not really, it's just a way to show that the static IP is reachable I think

#

Maybe that could be stripped out to avoid confusion (in the absence of validating it) - there are plenty of ways to verify the IP address.

#

I just checked my router for hostname and IP.

winter perch
#

I did notice that the name points to the DHCP-given IP, not the to the new static IP in the example, but I assume the hostname would be used when the IP is not fixed mostly

candid bramble
#

not sure what you mean by that, I saw the hostname attached to the static IP once those two things were changed

winter perch
#

hmmm not on my router then

candid bramble
#

sometimes it takes a new wifi-connect for the router to reflect it

#

perhaps something more on other routers

#

Anyway, nice feature, thanks for doing that!