Page 1 of 1


Posted: Tue Apr 16, 2019 3:39 pm
by 岁月静好

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);