PingDemo Function

Microchip TCP/IP Stack

Microchip TCP/IP Stack Help
PingDemo Function
C
void PingDemo();
Description

This function implements a simple ICMP client. The function is called periodically by the stack, and it checks if BUTTON0 has been pressed. If the button is pressed, the function sends an ICMP Echo Request (Ping) to a Microchip web server. The round trip time is displayed on the UART when the response is received. 

This function can be used as a model for applications requiring Ping capabilities to check if a host is reachable.

Preconditions

TCP is initialized.

Returns

None

Module
Microchip TCP/IP Stack 5.42.08 - June 15, 2013
Copyright © 2012 Microchip Technology, Inc.  All rights reserved.