esp_rom_output_set_as_console() function
Set the UART port used by ets_printf.
Syntax
void esp_rom_output_set_as_console(uint8_t serial_num); Arguments
serial_num
UART port number
Notes
USB-CDC port is also treated as "UART" port in the ROM code. Use ESP_ROM_USB_SERIAL_DEVICE_NUM or ESP_ROM_USB_OTG_NUM to identify USB_SERIAL_JTAG and USB_OTG, respectively.
esp_rom_output_set_as_console() is called by 1 function:
![]()
esp_rom_output_set_as_console()