esp_rom_output_switch_buffer() function
Switch the UART port that will use a buffer for TX and RX.
Syntax
void esp_rom_output_switch_buffer(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.
![]()
void esp_rom_output_switch_buffer(uint8_t serial_num);