Tasmota/lib/default/TasmotaSerial-3.6.0
mrkev-gh b472e821cf
Use 75% of the buffer for speeds higher than 115200 (#22774)
Higher speeds need larger buffer. Processing takes longer, so let's put the threshold at
75% of the buffer size to have some headroom. E.g. for 1Mbit with 2.5KB buffer 2048 characters
would be roughly still around 20ms, and reserve additional 512 chars / 5ms to handle the
buffer after the threshold is reached

Co-authored-by: mrkev-gh <mrkev-gh@users.noreply.github.com>
2025-01-06 11:34:06 +01:00
..
examples/swsertest Add serial Modbus transmit enable GPIOs 2022-12-03 12:33:42 +01:00
src Use 75% of the buffer for speeds higher than 115200 (#22774) 2025-01-06 11:34:06 +01:00
keywords.txt Add serial Modbus transmit enable GPIOs 2022-12-03 12:33:42 +01:00
library.json Add serial Modbus transmit enable GPIOs 2022-12-03 12:33:42 +01:00
library.properties Add serial Modbus transmit enable GPIOs 2022-12-03 12:33:42 +01:00
README.md Add serial Modbus transmit enable GPIOs 2022-12-03 12:33:42 +01:00

TasmotaSerial

Implementation of software serial with hardware serial fallback library for the ESP8266 Implementation of dual UART hardware serial for the ESP32 Implementation of single UART hardware serial for the ESP32-S2

Allows for several instances to be active at the same time.

Please note that due to the fact that the ESP always have other activities ongoing, there will be some inexactness in interrupt timings. This may lead to bit errors when having heavy data traffic.