mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
An attempt to improve Yun's discovery. Thanks @roadfun. See #2576
This commit is contained in:
@ -11,7 +11,7 @@ public abstract class NetUtils {
|
||||
Socket socket = null;
|
||||
try {
|
||||
socket = new Socket();
|
||||
socket.connect(new InetSocketAddress(address, port), 100);
|
||||
socket.connect(new InetSocketAddress(address, port), 300);
|
||||
return true;
|
||||
} catch (IOException e) {
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user