Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions code/ESP32/ClassicMQTT/include/Log.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@ void inline printHexString(char* ptr, int len)
#endif
}

void inline printCharString(char* ptr, int len)
{
#if APP_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_DEBUG
esp_log_level_set(TAG, ESP_LOG_DEBUG);
esp_log_buffer_char_internal(TAG, ptr, len, ESP_LOG_DEBUG);
#endif
}

#if APP_LOG_LEVEL >= ARDUHAL_LOG_LEVEL_VERBOSE
#define logv(format, ...) log_printf(ARDUHAL_LOG_FORMAT(V, format), ##__VA_ARGS__)
#else
Expand Down
Loading