1
0
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:
Federico Fissore
2015-02-16 20:11:17 +01:00
parent bedc550b5e
commit 3fec636b29
2 changed files with 25 additions and 9 deletions

View File

@ -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;