在Esp_log.h文件中找到
Code: Select all
/**
* @brief Set function used to output log entries
*
* By default, log output goes to UART0. This function can be used to redirect log
* output to some other destination, such as file or network. Returns the original
* log handler, which may be necessary to return output to the previous destination.
*
* @param func new Function used for output. Must have same signature as putchar.
*
* @return func old Function used for output.
*/
putchar_like_t esp_log_set_putchar(putchar_like_t func);
去检索API文档却没找到该函数,不知道该如何使用