can you check to see if an Ethernet cable is connected to the Rabbit?

I want to check the Ethernet port to see if a Cable is connected. If it is, I will open a socket and communicate with the client. If it is not connected, then I will just run an internal program to process I/Os.

1 Like

Take a look at the pd_havelink() function to see if you’re physically connected, and ifpending() for the status of the connection (e.g., getting a lease from the DHCP server and not completely up).

1 Like

Thank you!
That worked perfectly. I was trying to do it with a variety of status checks, but couldn’t find one that worked for me.
Best regards,
Mike