Skip to content

Setting the Core Debug Level gives compile errors #156

Open

Description

@PhotoKevin

Using the Arduino 2.0 IDE, setting Tools->Core Debug Level to Debug gives compile errors. Levels None and Warn are ok.


In file included from ...\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\cores\esp32/esp32-hal.h:76,
                 from ...\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\cores\esp32/Arduino.h:36,
                 from ...\Documents\Arduino\libraries\ESP32_HTTPS_Server\src\WebsocketHandler.hpp:4,
                 from ...\Documents\Arduino\libraries\ESP32_HTTPS_Server\src\WebsocketHandler.cpp:1:
...\Documents\Arduino\libraries\ESP32_HTTPS_Server\src\WebsocketHandler.cpp: In function 'void httpsserver::dumpFrame(httpsserver::WebsocketFrame)':
...\Documents\Arduino\libraries\ESP32_HTTPS_Server\src\WebsocketHandler.cpp:20:5: error: 'TAG' was not declared in this scope
     TAG,
     ^~~
...\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.4\cores\esp32/esp32-hal-log.h:127:72: note: in definition of macro 'log_i'
 #define log_i(format, ...) log_printf(ARDUHAL_LOG_FORMAT(I, format), ##__VA_ARGS__)
                                                                        ^~~~~~~~~~~
...\Documents\Arduino\libraries\ESP32_HTTPS_Server\src\WebsocketHandler.cpp:19:3: note: in expansion of macro 'ESP_LOGI'
   ESP_LOGI(
   ^~~~~~~~

exit status 1

Activity

  1. squonk11 commented on Jul 8, 2022

    @squonk11
    Contributor

    I think, that
    #include "esp_log.h"
    is missing?

  2. PhotoKevin commented on Oct 24, 2022

    @PhotoKevin
    Author

    #160 says adding esp_log.h doesn't fix it. I hope it's maintained, I want https.

  3. WayneKeenan commented on Aug 17, 2023

    @WayneKeenan

    In esp32_https_server/src/WebsocketHandler.cpp change:

    ESP_LOGI(
             TAG,
    

    to:

    HTTPS_LOGI(
    
  4. added a commit that references this issue on Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions