Skip to content

Commit dd8734f

Browse files
authored
docs(emulator): add missing basic-tcp.yaml example (#269)
The README references basic-tcp.yaml as an example configuration file, but this file did not exist in the repository. This created a broken documentation experience for users trying to follow the examples. Added basic-tcp.yaml with the same content shown in the README (TCP transport on port 502 with a single device emulating voltage and current readings). Closes #255
1 parent 7e6e8d1 commit dd8734f

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Basic TCP emulator configuration
2+
# Usage: ya-modbus-emulator --config basic-tcp.yaml
3+
4+
transport:
5+
type: tcp
6+
host: 0.0.0.0
7+
port: 502
8+
9+
devices:
10+
- slaveId: 1
11+
registers:
12+
holding:
13+
0: 230 # Voltage * 10 = 23.0V
14+
1: 52 # Current * 10 = 5.2A

0 commit comments

Comments
 (0)