Skip to content

Commit 02c75cb

Browse files
committed
timeout_ms
1 parent 0eb6f2b commit 02c75cb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libraries/WiFi/src/WiFiClient.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
/*
23
Client.h - Client class for Raspberry Pi
34
Copyright (c) 2016 Hristo Gochkov All right reserved.
@@ -316,10 +317,10 @@ int WiFiClient::connect(const char *host, uint16_t port, int32_t timeout_ms)
316317
}
317318
if (srv6.type == IPADDR_TYPE_V4) {
318319
IPAddress ip(srv6.u_addr.ip4.addr);
319-
return connect(ip, port, timeout);
320+
return connect(ip, port, timeout_ms);
320321
} else {
321322
IPAddress ip(IPv6, (uint8_t*)&srv6.u_addr.ip6.addr[0]);
322-
return connect(ip, port, timeout);
323+
return connect(ip, port, timeout_ms);
323324
}
324325
}
325326
IPAddress srv((uint32_t)0);

0 commit comments

Comments
 (0)