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