Skip to content

Commit d5cdb0b

Browse files
add connect() to the very first example (#1270)
1 parent ab83cc8 commit d5cdb0b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

README.rst

+1
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ For those of you that just want to get started fast, here you go::
104104
from pymodbus.client import ModbusTcpClient
105105

106106
client = ModbusTcpClient('127.0.0.1')
107+
client.connect()
107108
client.write_coil(1, True)
108109
result = client.read_coils(1,1)
109110
print(result.bits[0])

0 commit comments

Comments
 (0)