Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions API_changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ PyModbus - API changes.
Version 3.1.0
-------------
Added --host to client_* examples, to allow easier use.
unit= in client calls are no longer converted to slave=, but raises a runtime exception.
Added missing client calls (all standard request are not available as methods).
client.mask_write_register() changed parameters.

---------------------
Version 3.0.1 / 3.0.2
Expand Down
2 changes: 1 addition & 1 deletion examples/client_calls.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ async def _handle_holding_registers(client):
"write_address": 1,
"write_registers": [256, 128, 100, 50, 25, 10, 5, 1],
}
_check_call(await client.readwrite_registers(unit=SLAVE, **arguments))
_check_call(await client.readwrite_registers(slave=SLAVE, **arguments))
rr = _check_call(await client.read_holding_registers(1, 8, slave=SLAVE))
assert rr.registers == arguments["write_registers"]

Expand Down
5 changes: 4 additions & 1 deletion pymodbus/client/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,13 @@ def run():
rr = client.read_coils(0x01)
client.close()


**Application methods, common to all clients**:
"""

state = ModbusTransactionState.IDLE
last_frame_end = 0
silent_interval = 0

@dataclass
class _params: # pylint: disable=too-many-instance-attributes
"""Parameter class."""
Expand Down
Loading