You are using staging server - a separate instance of the ESP Component Registry that allows you to try distribution tools and processes without affecting the real registry.
# Console command ping
The component provides a console where the 'ping' command can be executed.
## API
### Steps to enable console in an example code:
1. Add this component to your project using the command:
```bash
idf.py add-dependency
```
2. In the main file of the example, add the following line:
```c
#include "console_ping.h"
```
3. In your app_main() function, add the following line as the last line:
```c
console_cmd_init(); // Initialize console
register_ping();
console_cmd_start(); // Start console
```
## Suported commands:
### ping:
ping [-W <t>] [-i <t>] [-s <n>] [-c <n>] [-Q <n>] [-T <n>] <host><br>
send ICMP ECHO_REQUEST to network hosts<br>
-W, --timeout=<t> Time to wait for a response, in seconds<br>
-i, --interval=<t> Wait interval seconds between sending each packet<br>
-s, --size=<n> Specify the number of data bytes to be sent<br>
-c, --count=<n> Stop after sending count packets<br>
-Q, --tos=<n> Set Type of Service related bits in IP datagrams<br>
-T, --ttl=<n> Set Time to Live related bits in IP datagrams<br>
<host> Host address
idf.py add-dependency "espressif/console_cmd_ping^0.0.2"