esp_log_set_vprintf
Posted: Mon Oct 23, 2017 12:20 pm
Hello,
I'm trying to redirect the log outputs to my MQTT Server instead of UART0. But I'm not really familiar with the used vprintf, nor did I find this function in the esp-idf github repository.
I tried the following to "redirect" it to printf, but just got an Exception while trying:
Anyone any Idea how it needs to get handled? E.g. how to get it handled thorugh sprintf?
I'm trying to redirect the log outputs to my MQTT Server instead of UART0. But I'm not really familiar with the used vprintf, nor did I find this function in the esp-idf github repository.
I tried the following to "redirect" it to printf, but just got an Exception while trying:
Code: Select all
int redirect_log(const char * fmt, va_list ap) {
printf(fmt);
return 1;
}