求助:ESP8266_RTOS_SDK怎么把ESP_LOGI重定向到UART1?

岁月静好
Posts: 4
Joined: Tue Aug 07, 2018 2:21 pm

求助:ESP8266_RTOS_SDK怎么把ESP_LOGI重定向到UART1?

Postby 岁月静好 » Tue Apr 16, 2019 3:39 pm

如题,请问在ESP8266_RTOS_SDK中应该怎么把ESP_LOGI重定向到UART1?
在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文档却没找到该函数,不知道该如何使用

Who is online

Users browsing this forum: No registered users and 2 guests