Eclipse generating 'Invalid Args' for ESP_LOG() macros
Posted: Tue Feb 05, 2019 12:27 am
The code compiles OK, but the Eclipse edit window has every ESP_LOGI() statement underlined in red, saying that it has invalid arguments.
Eg
static const char* TAG = "wt_comms";
ESP_LOGI(TAG, "Reconnecting to WiFi");
When you hover over it, the popup gives:
"Invalid arguments '
Candidates are:
void esp_log_write(enum {/wt_starter_esp_idf/components/arduino-esp32/tools/sdk/include/log/esp_log.h:822}, const char *, const char *, ...)
'"
All my includes appear to be OK. Everything else gets reported correctly.
It's just the ESP_LOG macros.
What am I missing?
Eg
static const char* TAG = "wt_comms";
ESP_LOGI(TAG, "Reconnecting to WiFi");
When you hover over it, the popup gives:
"Invalid arguments '
Candidates are:
void esp_log_write(enum {/wt_starter_esp_idf/components/arduino-esp32/tools/sdk/include/log/esp_log.h:822}, const char *, const char *, ...)
'"
All my includes appear to be OK. Everything else gets reported correctly.
It's just the ESP_LOG macros.
What am I missing?