Como corrigir erro ESP32: 'ESP_LOGE' was not declared in this scope
Problema:
Ao tentar compilar seu projeto ESP32, você vê uma mensagem de erro como
esp_loge_error.txt
.pio/libdeps/esp32dev/HumanESPHTTP/src/QueryURLParser.cpp:29:9: error: 'ESP_LOGE' was not declared in this scope
ESP_LOGE("Query URL parser", "parsing URL");
^~~~~~~~Solução
No topo do arquivo onde o erro ocorre (QueryURLParser.cpp neste exemplo), adicione a seguinte linha:
include_esp_log.h
#include <esp_log.h>Check out similar posts by category:
C/C++, ESP8266/ESP32
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow