Using esp_ping.h
Posted: Thu Sep 20, 2018 9:17 am
Hello all.
I am sure this is very silly, but I am afraid I am stuck.
I am trying to ping a network device from a ESP32-WROOM32 module built into an Olimex ESP32-EVB board. Following the hints provided in this post, I am trying to include header files esp_ping.h and ping.h in my main .c file, but I always run into the same compilation error:
These header files seem to be located in the directory "$(IDF_PATH)/components/lwip/include/apps/ping", so I have tried including them with different portions of their relative paths, without success. I have also tried adding the directory to the component.mk project file, using a COMPONENT_ADD_INCLUDEDIRS := $(IDF_PATH)/components/lwip/include/apps/ping variable, but I am very new to ESP32 and ESP-IDF and I do not think I am doing it correctly, because the exact same problem persists in all my attempts.
Can anybody please explain to me how to use esp_ping.h and ping.h in my project, or at least point me to some documentation where I can learn how to properly configure my project?
Thanks in advance.
I am sure this is very silly, but I am afraid I am stuck.
I am trying to ping a network device from a ESP32-WROOM32 module built into an Olimex ESP32-EVB board. Following the hints provided in this post, I am trying to include header files esp_ping.h and ping.h in my main .c file, but I always run into the same compilation error:
Code: Select all
...
CC build/main/ping.o
C:/msys32/home/dieguito/v3.1/ping/main/ping.c:15:22: fatal error: esp_ping.h: No such file or directory
compilation terminated.
...
Can anybody please explain to me how to use esp_ping.h and ping.h in my project, or at least point me to some documentation where I can learn how to properly configure my project?
Thanks in advance.