Remember
Register
Home
/
Support
/
Support Forum
/
can you check to see if an Ethernet cable is connected to the Rabbit?
Digi Forum
All Activity
Q&A
Questions
Hot!
Unanswered
Tags
Categories
Users
Ask a Question
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.
All categories
Digi Remote Manager
(383)
Python
(1,016)
RF Solutions and XBee
(8,413)
Digi TransPort
(785)
Digi Connect Cellular
(443)
DAL
(4)
Embedded Devices
(4,159)
Google Coral
(2)
Rabbit
(3,194)
Rabbit Software
(518)
Console Servers
(353)
Modbus and Industrial Automation
(246)
Realport
(600)
Serial Servers
(836)
Satellite Modules
(25)
USB
(1,269)
Serial Cards
(715)
ConnectPort Display
(58)
Feedback/Wish List
(92)
Other/Legacy
(372)
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.
rabbit
ethernet
cable
asked
Dec 13, 2016
in
Rabbit Software
by
MDUNCAN78
New to the Community
(
1
point)
Please
log in
or
register
to add a comment.
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
(
2,297
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
Please
log in
or
register
to add a comment.
...