Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to call LinkStatus() withoput previously calling begin() #279

Open
FRUKGit opened this issue Jan 16, 2025 · 1 comment
Open

Unable to call LinkStatus() withoput previously calling begin() #279

FRUKGit opened this issue Jan 16, 2025 · 1 comment

Comments

@FRUKGit
Copy link

FRUKGit commented Jan 16, 2025

Was testing some things on the Arduino Opta, there is a example program that use Ethernet.h to check the link status however I've found that this doesn't work as the init of the ethernet shield is done inside of a call from Ethernet.begin().

Ideally I want to be able to check if there is a cable plugged in with linkstatus() before calling begin() so I dont have the blocking DHCP timeout.

Ideal outcome will be that linkstatus() would check to see if the required init has been completed and if not call it.

@JAndrassy
Copy link
Contributor

you can set the DHCP timeout as a parameter of begin().

btw for OPTA maybe better use Mbed Ethernet with the Ethernet library bundled with the Mbed core and my W5500-EMAC driver library.
https://github.com/Networking-for-Arduino/W5500-EMAC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants