File tree 1 file changed +2
-2
lines changed
libraries/ESP32/examples/Serial/onReceiveExample
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -80,8 +80,8 @@ void setup() {
80
80
Serial0.setClockSource (UART_CLK_SRC_APB);
81
81
#endif
82
82
// the amount of data received or waiting to be proessed shall not exceed this limit of 1024 bytes
83
- Serial0.setRxBufferSize (1024 ); // default is 256 bytes
84
- Serial0.begin (baudrate); // default pins and default mode 8N1 (8 bits data, no parity bit, 1 stopbit)
83
+ Serial0.setRxBufferSize (1024 ); // default is 256 bytes
84
+ Serial0.begin (baudrate); // default pins and default mode 8N1 (8 bits data, no parity bit, 1 stopbit)
85
85
// set RX Timeout based on UART symbols ~ 3.5 symbols of 11 bits (MODBUS standard) ~= 2 ms at 19200
86
86
Serial0.setRxTimeout (modbusRxTimeoutLimit); // 4 symbols at 19200 8N1 is about 2.08 ms (40 bits)
87
87
// sets the callback function that will be executed only after RX Timeout
You can’t perform that action at this time.
0 commit comments