@@ -118,9 +118,9 @@ class MbedSocketClass {
118
118
*
119
119
* return: RTT in milliseconds or -1 on error
120
120
*/
121
- int ping (const char * hostname, uint8_t ttl = 255 );
122
- int ping (const String &hostname, uint8_t ttl = 255 );
123
- int ping (IPAddress host, uint8_t ttl = 255 );
121
+ int ping (const char * hostname, uint8_t ttl = 255 , uint32_t timeout = 5000 );
122
+ int ping (const String &hostname, uint8_t ttl = 255 , uint32_t timeout = 5000 );
123
+ int ping (IPAddress host, uint8_t ttl = 255 , uint32_t timeout = 5000 );
124
124
125
125
/*
126
126
* Download a file from an HTTP endpoint and save it in the provided `target` location on the fs
@@ -185,7 +185,7 @@ class MbedSocketClass {
185
185
186
186
void body_callback (const char * data, uint32_t data_len);
187
187
188
- int ping (SocketAddress &socketAddress, uint8_t ttl, uint32_t timeout = 5000 );
188
+ int ping (SocketAddress &socketAddress, uint8_t ttl, uint32_t timeout);
189
189
static arduino::IPAddress ipAddressFromSocketAddress (SocketAddress socketAddress);
190
190
static SocketAddress socketAddressFromIpAddress (arduino::IPAddress ip, uint16_t port);
191
191
static nsapi_error_t gethostbyname (NetworkInterface* interface, const char * aHostname, SocketAddress* socketAddress);
0 commit comments