Functions#
This section provides a reference to the Ping API functions.
Functions#
sl_status_t
sl_si91x_send_ping(sl_ip_address_t ip_address, uint16_t ping_packet_size)
Send an ICMP ping request.
Function Documentation#
sl_si91x_send_ping#
sl_status_t sl_si91x_send_ping (sl_ip_address_t ip_address, uint16_t ping_packet_size)
Send an ICMP ping request.
Parameters
[in] | ip_address | Destination IP address (IPv4 or IPv6) and SL IP type identified by sl_ip_address_t |
[in] | ping_packet_size | Size of a ping packet |
Pre-condition:
sl_net_init should be called before this API.
Returns
sl_status_t. See https://docs.silabs.com/gecko-platform/4.1/common/api/group-status for details.
Note
ping_packet_size valid range: [0, 300]
This is an asynchronous API. The response is recieved via sl_net_event_handler_t with SL_NET_PING_RESPONSE_EVENT as event
Definition at line
53
of file components/device/silabs/si91x/wireless/icmp/sl_net_ping.h