"DEBUG_PRINT" redefined in Blynk Edgent when working with other libraries

I am just beginning to use Blynk Edgent with ESP8266. When I included other libraries like DHT (humidity/temp sensor) or PCF8574 (I/O expander), I got a warning saying that “DEBUG_PRINT” is redefined.

c:\Users\abc\Documents\Arduino\libraries\PCF8574_library/PCF8574.h:75: warning: “DEBUG_PRINT” redefined

Has anyone experienced this? Do I just ignore the warning? I tried commenting out define APP_DEBUG but the problem persisted.

#define BLYNK_TEMPLATE_ID "----------"
#define BLYNK_TEMPLATE_NAME "----------"
#define BLYNK_FIRMWARE_VERSION        "0.1.0"
#define BLYNK_PRINT Serial

//#define BLYNK_DEBUG
//#define APP_DEBUG

#define USE_NODE_MCU_BOARD
#include "BlynkEdgent.h"
#include "DHT.h"
#include "PCF8574.h"

void setup()
{
  Serial.begin(115200);
  delay(100);
  BlynkEdgent.begin();
}

void loop() {
  BlynkEdgent.run();
}

Seeing the full compiler message (please copy/paste the text, don’t post a screenshot), and links to the exact libraries you are using would be helpful, along with details of the library versions you are using.

Pete.

Hi Pete,

I checked both of my DHT and PCF8574 libraries, and found “DEBUG_PRINT” used in many places as well as in Blynk Edgent. Perhaps this is a common term?

Here are the links to the DHT and PCF8574 libraries that I used:
DHT (version 1.4.4, author = Adafruit): DHT sensor library - Arduino Libraries
PCF8574 (version 2.3.5, author = Renzo Mischianti): https://github.com/xreef/PCF8574_library

For now, I get by this warning by changing “DEBUG_PRINT” in Blynk Edgent to a different name, so it won’t be redundant with other libraries.

I am surprised other users have not seen this warning, or perhaps I am doing something wrong.
Is there a way to put all Blynk Edgent sketch tabs inside of a library folder (e.g. Documents > Arduino > libraries > Blynk Edgent)?

Below is the warning.

In file included from C:\Users\abc\AppData\Local\Temp\.arduinoIDE-unsaved2023326-14096-rx9m55.bgbob\Edgent_ESP8266\Edgent_ESP8266.ino:11:
c:\Users\abc\Documents\Arduino\libraries\DHT_sensor_library/DHT.h:37: warning: "DEBUG_PRINT" redefined
   37 | #define DEBUG_PRINT(...)                                                       \
      | 
In file included from C:\Users\abc\AppData\Local\Temp\.arduinoIDE-unsaved2023326-14096-rx9m55.bgbob\Edgent_ESP8266\BlynkEdgent.h:9,
                 from C:\Users\abc\AppData\Local\Temp\.arduinoIDE-unsaved2023326-14096-rx9m55.bgbob\Edgent_ESP8266\Edgent_ESP8266.ino:10:
C:\Users\abc\AppData\Local\Temp\.arduinoIDE-unsaved2023326-14096-rx9m55.bgbob\Edgent_ESP8266\Settings.h:98: note: this is the location of the previous definition
   98 |   #define DEBUG_PRINT(...)
      | 
. Variables and constants in RAM (global, static), used 38320 / 80192 bytes (47%)
║   SEGMENT  BYTES    DESCRIPTION
╠══ DATA     1632     initialized variables
╠══ RODATA   7344     constants       
╚══ BSS      29344    zeroed variables
. Instruction RAM (IRAM_ATTR, ICACHE_RAM_ATTR), used 62111 / 65536 bytes (94%)
║   SEGMENT  BYTES    DESCRIPTION
╠══ ICACHE   32768    reserved space for flash instruction cache
╚══ IRAM     29343    code in IRAM    
. Code in flash (default, ICACHE_FLASH_ATTR), used 431560 / 1048576 bytes (41%)
║   SEGMENT  BYTES    DESCRIPTION
╚══ IROM     431560   code in flash