pub unsafe extern "C" fn esp_sleep_enable_uart_wakeup(
    uart_num: i32
) -> i32
Expand description

@brief Enable wakeup from light sleep using UART

Use uart_set_wakeup_threshold function to configure UART wakeup threshold.

Wakeup from light sleep takes some time, so not every character sent to the UART can be received by the application.

@note ESP32 does not support wakeup from UART2.

@param uart_num UART port to wake up from @return - ESP_OK on success - ESP_ERR_INVALID_ARG if wakeup from given UART is not supported