Closed
Description
From @ibantxo on January 7, 2016 21:6
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
Copied from original issue: arduino/Arduino#4400
Metadata
Assignees
Labels
No labels