Can't turn off ESP8266 dancole90 ping library debug messages

Greetings,

I was trying to set up the ESP8266 dancole90 ping library, but every time I run the "Host ping" or the other example sketch, I get the following debug message on the last line of the serial monitor:
"ping 5, timeout 0, total payload 160 bytes, 5031 ms"

It doesn't really matter which ip address or host I try to ping.

I want to disable this debug message line, as it is ruining my (already existing) serial debug message formatting for one of my projects.

The problem is, I don't know where this debug message line is coming from..

Things I tried so far which didn't work at all:

  1. #define DISABLE_SPIFFS_DEBUG
  2. #define DISABLE_WIFI_DEBUG
  3. #define DISABLE_CORE_DEBUG
  4. #define ENABLE_DEBUG_PING 0
  5. system_set_os_print(0);

I also tried to comment out every DEBUG_PING(...), os_printf(...), LWIP_DEBUGF(...) lines, and also the ENABLE_DEBUG_PING, PING_DEBUG, etc definitions from ESP8266Ping.h, ESP8266Ping.cpp, ping.h, esp-ping.c files. I don't know which files should I look through next, as I don't have a very good understanding of the sdk / core.

GPT-4o was not helpful either.

IDE version: 2.1.1
Board: ESP-12F (4MB flash, 160Mhz)
ESP8266 core version: 3.1.2

Sorry for my English

The message may be coming from esp-ping.c

		if (ping_opt->sent_function == NULL){
			os_printf("ping %d, timeout %d, total payload %d bytes, %d ms\n",
					pingmsg->max_count, pingmsg->timeout_count, PING_DATA_SIZE*(pingmsg->max_count - pingmsg->timeout_count),delay);

On my PC the path to the file is C:\Users\Bob2\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\3.1.2\tools\sdk\lwip2\builder\glue-lwip\esp-ping.c

Thanks for the fast reply!

Unfortunately, I already commented out that exact, and all other os_printf functions as I mentioned above.
I also double checked it now (just in case).

I also forgot to mention, that I tried restarting my IDE, and deleting the core cache (path taken from verbose log) at:
%appdata%\Local\Temp\arduino\cores\a842aa3ed1b6a557f4ef2f1624d87ab8\core.a

Update!

I deleted the esp-ping.c file located at esp8266\hardware\esp8266\3.1.2\tools\sdk\lwip2\builder\glue-lwip\esp-ping.c. Surprisingly, I didn’t encounter any errors when I tried to build the example code. It appears that the issue wasn’t related to that file after all.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.