Hello . I am using a W5500 chip (without an evaluation board). I would love to know what is the best way to know if an unplug/plug event occurs. I know polling the PHY status will do the job but it does not happen often so polling is a waste of my CPU resource.
Naturally, I think an interrupt should be issued for a link-down/up event, but I don’t find any interrupt directly indicating an unpluging or pluging event(I guess the socket interrupt of timeout is the best way?).
I have multicast UDP(UPNP), broadcast UDP(DHCP) and TCP sockets and I have to reinitialize a lot of things such as resend the DHCP request and reconfigure the ip address when a repluging event happens.