Skip to content

Commit 61fac33

Browse files
BoboTiGjaniversen
authored andcommitted
doc: Fix a code mismatch in client.rst
1 parent 5131219 commit 61fac33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/source/client.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ the timeout it throws an exception. If connected successfully reconnecting later
149149

150150
The line :mod:`await client.write_coil(1, True, slave=1)` is an example of a write request, set address 1 to True on device 1 (slave).
151151

152-
The line :mod:`result = await client.read_coils(2, 1, slave=1)` is an example of a read request, get the value of address 2, 3 and 4 (count = 3) from device 1 (slave).
152+
The line :mod:`result = await client.read_coils(2, 3, slave=1)` is an example of a read request, get the value of address 2, 3 and 4 (count = 3) from device 1 (slave).
153153

154154
The last line :mod:`client.close()` closes the connection and render the object inactive.
155155

0 commit comments

Comments
 (0)