-
-
Notifications
You must be signed in to change notification settings - Fork 7k
Closed
Labels
Library: EthernetThe Ethernet Arduino libraryThe Ethernet Arduino libraryfeature requestA request to make an enhancement (not a bug fix)A request to make an enhancement (not a bug fix)
Description
Hi,
I want that my code works in 3 cases:
- Without ethernet shield connected to Arduino.
- With ethernet shield, but unpluged cable
- With ethernet shield with a working network
The third scenario works well. But the first one "hangs" in this code line (waiting forever...):
ethClient.connect(server, port);
Is there any way to detect presence of ethernet shield or to insert a timeout in connection attempt?
Many thanks
Iban
Metadata
Metadata
Assignees
Labels
Library: EthernetThe Ethernet Arduino libraryThe Ethernet Arduino libraryfeature requestA request to make an enhancement (not a bug fix)A request to make an enhancement (not a bug fix)