mirror of
https://github.com/espressif/esp-idf
synced 2025-03-09 17:19:09 -04:00
Added requires libs to the code example
Added libs so that the code example works. It didn't work because of missing declarations: struct addrinfo getaddrinfo()
This commit is contained in:
parent
b5ac4fbdf9
commit
30ff99bd8b
@ -22,6 +22,9 @@ To create a ping session, you need to fill in the ``esp_ping_config_t`` configur
|
||||
Example method to create a new ping session and register callbacks:
|
||||
|
||||
.. code-block:: c
|
||||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netdb.h>
|
||||
|
||||
static void test_on_ping_success(esp_ping_handle_t hdl, void *args)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user