We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7df67be commit 94a00b2Copy full SHA for 94a00b2
examples/RTU/ModbusRTUClientParameters/ModbusRTUClientParameters.ino
@@ -22,9 +22,9 @@ constexpr auto baudrate { 19200 };
22
// Paragraph 2.5.1.1 MODBUS Message RTU Framing
23
// https://modbus.org/docs/Modbus_over_serial_line_V1_02.pdf
24
constexpr auto bitduration { 1.f / baudrate };
25
-constexpr auto wordlen { 9.6f }; // try also with 10.0f
26
-constexpr auto preDelayBR { bitduration * wordlen * 3.5f * 1e6 };
27
-constexpr auto postDelayBR { bitduration * wordlen * 3.5f * 1e6 };
+constexpr auto charlen { 11.0f };
+constexpr auto preDelayBR { bitduration * charlen * 3.5f * 1e6 };
+constexpr auto postDelayBR { bitduration * charlen * 3.5f * 1e6 };
28
29
void setup() {
30
Serial.begin(9600);
0 commit comments