File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -132,16 +132,16 @@ is done in a few simple steps, like the following synchronous example::
132132
133133and a asynchronous example::
134134
135- from pymodbus.client import ModbusAsyncTcpClient
135+ from pymodbus.client import AsyncModbusTcpClient
136136
137- client = ModbusAsyncTcpClient ('MyDevice.lan') # Create client object
137+ client = AsyncModbusTcpClient ('MyDevice.lan') # Create client object
138138 await client.connect() # connect to device, reconnect automatically
139139 await client.write_coil(1, True, slave=1) # set information in device
140140 result = await client.read_coils(2, 3, slave=1) # get information from device
141141 print(result.bits[0]) # use information
142142 client.close() # Disconnect device
143143
144- The line :mod: `client = ModbusAsyncTcpClient ('MyDevice.lan') ` only creates the object it does not activate
144+ The line :mod: `client = AsyncModbusTcpClient ('MyDevice.lan') ` only creates the object it does not activate
145145anything.
146146
147147The line :mod: `await client.connect() ` connects to the device (or comm port), if this cannot connect successfully within
You can’t perform that action at this time.
0 commit comments