You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/RTU/README.MD
+10-10
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
This example is introduces how to use the library for ModbusRTU (typicaly over RS-485) to act as [master](master) or [slave](slave). Additionally there is [example of master](ESP32-Concurent) device for multithread usage with ESP32.
1
+
This example introduces how to use the library for ModbusRTU (typicaly over RS-485) to act as [master](master) or [slave](slave). Additionally there is [example of master](ESP32-Concurent) device for multithread usage with ESP32.
2
2
3
-
## [Concurent thread-safe access to Modbus object](ESP32-Concurent)
3
+
## [Concurrent thread-safe access to Modbus object](ESP32-Concurent)
4
4
5
5
## [Simple ModbusRTU master](master)
6
6
@@ -20,10 +20,10 @@ bool begin(Stream* port);
20
20
- `txPin` RX/TX control pin. Not assigned (assume auto RX/TX) by default
21
21
- `direct` Direct (true, default) or inverse (false) RX/TX pin control.
22
22
23
-
Assing Serial port. txPin controls transmit enable for MAX-485.
23
+
Assign Serial port. txPin controls transmit enable for MAX-485.
24
24
25
25
```c
26
-
void setBaudrte(uint32 baud);
26
+
void setBaudrate(uint32 baud);
27
27
```
28
28
29
29
-`baud` New baudrate.
@@ -33,25 +33,25 @@ Set or override Serial baudrate. Must be called after .begin() for Non-ESP devic
33
33
```c
34
34
voidclient();
35
35
voidserver(uint8_t slaveId);
36
-
void slave(); // Depricated
37
-
void master(uint8_t slaveId); // Depricated
36
+
void slave(); // Deprecated
37
+
void master(uint8_t slaveId); // Deprecated
38
38
```
39
39
40
40
- `slaveId` Modbus slave id to associate to.
41
41
42
-
Select and initialize master or slave mode to work. Switching between modes is not supported. Call is not returning error in this case but behaviour is unpredictible.
42
+
Select and initialize master or slave mode to work. Switching between modes is not supported. Call is not returning error in this case but behaviour is unpredictable.
43
43
44
44
```c
45
45
uint8_t client();
46
-
uint8_t slave(); // Depricated
46
+
uint8_t slave(); // Deprecated
47
47
```
48
48
49
49
- Slave mode: Returns configured slave id.
50
-
- Master mode: Returns slave id for active request or 0 if no request in-progress.
50
+
- Master mode: Returns slave id for active request or 0 if no request inprogress.
0 commit comments