File tree Expand file tree Collapse file tree 4 files changed +2
-19
lines changed Expand file tree Collapse file tree 4 files changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ Synchronous example
130130 client = ModbusTcpClient('MyDevice.lan') # Create client object
131131 client.connect() # connect to device
132132 client.write_coil(1, True, device_id=1) # set information in device
133- result = client.read_coils(2, 3, device_id=1) # get information from device
133+ result = client.read_coils(2, count= 3, device_id=1) # get information from device
134134 print(result.bits[0]) # use information
135135 client.close() # Disconnect device
136136
@@ -150,7 +150,7 @@ Asynchronous example
150150 client = AsyncModbusTcpClient('MyDevice.lan') # Create client object
151151 await client.connect() # connect to device, reconnect automatically
152152 await client.write_coil(1, True, device_id=1) # set information in device
153- result = await client.read_coils(2, 3, device_id=1) # get information from device
153+ result = await client.read_coils(2, count= 3, device_id=1) # get information from device
154154 print(result.bits[0]) # use information
155155 client.close() # Disconnect device
156156
Original file line number Diff line number Diff line change @@ -39,20 +39,3 @@ Class definitions
3939 :undoc-members:
4040 :show-inheritance:
4141 :member-order: bysource
42-
43-
44- Action data class examples
45- ^^^^^^^^^^^^^^^^^^^^^^^^^^
46-
47-
48- .. autoclass :: pymodbus.simulator.SimDataMinMax
49- :members:
50- :undoc-members:
51- :show-inheritance:
52- :member-order: bysource
53-
54- .. autoclass :: pymodbus.simulator.SimDataIncrement
55- :members:
56- :undoc-members:
57- :show-inheritance:
58- :member-order: bysource
You can’t perform that action at this time.
0 commit comments