6static const char *
const TAG =
"uart";
12 uint32_t start_time =
millis();
14 if (
millis() - start_time > 100) {
15 ESP_LOGE(TAG,
"Reading from UART timed out at byte %u!", this->
available());
27 int32_t
val = clamp<int32_t>((this->
baud_rate_ / (bytelength * 1000 / time)) - 1, 1, 120);
UARTParityOptions parity_
bool check_read_timeout_(size_t len=1)
void set_rx_full_threshold_ms(uint8_t time)
virtual void set_rx_full_threshold(size_t rx_full_threshold)
virtual int available()=0
@ UART_CONFIG_PARITY_NONE
Providing packet encoding functions for exchanging data with a remote host.
void IRAM_ATTR HOT yield()
uint32_t IRAM_ATTR HOT millis()