5.13.0.0R1
Software Development Kit

Functions

wiced_result_t wiced_ping (wiced_interface_t interface, const wiced_ip_address_t *address, uint32_t timeout_ms, uint32_t *elapsed_ms)
 

Detailed Description

Functions for ICMP echo requests (Internet Control Message Protocol) This is commonly known as ping

Function Documentation

wiced_result_t wiced_ping ( wiced_interface_t  interface,
const wiced_ip_address_t *  address,
uint32_t  timeout_ms,
uint32_t *  elapsed_ms 
)

Sends a ping (ICMP echo request)

Sends a ICMP echo request (a ping) and waits for the response. Supports both IPv4 and IPv6

Parameters
[in]interface: The interface (AP or STA) on which to send the ping
[in]address: The IP address to which the ping should be sent
[in]timeout_ms: Timeout value in milliseconds
[out]elapsed_ms: Pointer to a uint32_t which will receive the elapsed response time in milliseconds
Returns
wiced_result_t