Skip to content

Commit 9181ec0

Browse files
authored
LwipIntfDev - hostByName default value for the timeout parameter (earlephilhower#1858)
to have standard version with two parameters
1 parent 58089b1 commit 9181ec0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/lwIP_Ethernet/src/LwipIntfDev.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ class LwipIntfDev: public LwipIntf, public RawDev {
122122
// ICMP echo, returns TTL
123123
int ping(IPAddress host, uint8_t ttl, uint32_t timeout = 5000);
124124

125-
int hostByName(const char* aHostname, IPAddress& aResult, int timeout);
125+
int hostByName(const char* aHostname, IPAddress& aResult, int timeout = 15000);
126126

127127
inline void setSPISpeed(int mhz) {
128128
setSPISettings(SPISettings(mhz, MSBFIRST, SPI_MODE0));

0 commit comments

Comments
 (0)