gmag11 / EnigmaIOT

Secure sensor and gateway platform based on ESP8266 and ESP32
https://gmag11.github.io/EnigmaIOT
MIT License
240 stars 46 forks source link

DEBUG setting in EnigmaIOTConfig.h has no effect on ESP32 platform #14

Closed gmag11 closed 4 years ago

gmag11 commented 4 years ago

@quangvankts asked in #11

DEBUG seems only work on my ESP8266 node but not ESP32 gateway. I tried "#define DEBUG_LEVEL VERBOSE" and "#define DEBUG_ESP_PORT Serial" at the main sketch with no effect. Serial.printf() still works as normal. (Im using Platform IO latest core)

gmag11 commented 4 years ago

That's right, ESP32 platform uses different mechanism to configure debug level.

If you use Arduino you need to configure debug level in board configuration (core debug level).

If you use Platformio you may read this section in Platformio docs: https://docs.platformio.org/en/latest/platforms/espressif32.html#debug-level

quangvankts commented 4 years ago

Yes I understand how debug configuration work on EPS32 now Thanks !