CONFIG_ESP_CONSOLE_UART_DEFAULT=y and it just uses ESP_LOGx to output logs.
I want to implement esp console on this serial in this way:
On app startup, it gives user 15 seconds to hit ENTER through terminal console like PuTTY.
If user hits ENTER, then something like CLI started on CONSOLE serial port (like esp_console)
If user did not hit ENTER, then app runs normally
I expect that serial port is already initialized somehow for logging, and i exprected to use something like this with no luck, right inside app_main:
Code: Select all
while(...) {
// esp_rom_output_rx_one_char(&c);
// int ret = select(stdin_fd + 1, &rfds, NULL, NULL, &tv);
//
}
Could you help me?