Detection: you can either poll the link state (if the driver supports it, and the Teensy 4.1 driver does) or add a listener.
See:
On connections that hang around after cable disconnect
See:
Ethernet.linkState()
(see the QNEthernet.h source code for docs)Ethernet.linkStatus()
(same here)- How to use listeners
On connections that hang around after cable disconnect
Last edited: