@@ -75,22 +75,22 @@ arduino::IPAddress arduino::MbedSocketClass::dnsIP(int n) {
75
75
return ipAddressFromSocketAddress (ip);
76
76
}
77
77
78
- int arduino::MbedSocketClass::ping (const char *hostname, uint8_t ttl)
78
+ int arduino::MbedSocketClass::ping (const char *hostname, uint8_t ttl, uint32_t timeout )
79
79
{
80
80
SocketAddress socketAddress;
81
81
gethostbyname (getNetwork (),hostname, &socketAddress);
82
- return ping (socketAddress, ttl);
82
+ return ping (socketAddress, ttl, timeout );
83
83
}
84
84
85
- int arduino::MbedSocketClass::ping (const String &hostname, uint8_t ttl)
85
+ int arduino::MbedSocketClass::ping (const String &hostname, uint8_t ttl, uint32_t timeout )
86
86
{
87
- return ping (hostname.c_str (), ttl);
87
+ return ping (hostname.c_str (), ttl, timeout );
88
88
}
89
89
90
- int arduino::MbedSocketClass::ping (IPAddress host, uint8_t ttl)
90
+ int arduino::MbedSocketClass::ping (IPAddress host, uint8_t ttl, uint32_t timeout )
91
91
{
92
92
SocketAddress socketAddress = socketAddressFromIpAddress (host, 0 );
93
- return ping (socketAddress, ttl);
93
+ return ping (socketAddress, ttl, timeout );
94
94
}
95
95
96
96
void arduino::MbedSocketClass::config (arduino::IPAddress local_ip) {
0 commit comments