Home/Support/Support Forum/can you check to see if an Ethernet cable is connected to the Rabbit?
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

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

+1 vote
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.
asked Dec 13, 2016 in Rabbit Software by MDUNCAN78 New to the Community (1 point)

Please log in or register to answer this question.

1 Answer

+1 vote
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).
answered Dec 13, 2016 by TomCollins Veteran of the Digi Community (1,752 points)
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
...