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:
b0tFilip 2024-12-30 11:36:15 +01:00 committed by GitHub
parent b5ac4fbdf9
commit 30ff99bd8b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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)
{