Checking Ethernet Status
|Top Previous Next|
The net.failure read-only property tells you if the NIC is functioning properly.
The net.linkstate read-only property tells you if there is a live Ethernet cable plugged into the Ethernet port of your device, and, if yes, whether this is a 10BaseT or 100BaseT connection. The on_net_link_change event is generated each time the link status changes:
Notice, that the net.linkstate always reflects current link status, not the link at the time of event generation.
Finally, there is a on_net_overrun event that is generated when internal RX buffer of NIC overflows.