Skip to content

2.2.0

Compare
Choose a tag to compare
@github-actions github-actions released this 02 Jan 23:31
59e1c6c

Added

Changed

  • Outsourced the following common functions of serial.py and tcp.py into CommonModbusFunctions of common.py:

    • read_coils
    • read_discrete_inputs
    • read_holding_registers
    • read_input_registers
    • write_single_coil
    • write_single_register
    • write_multiple_coils
    • write_multiple_registers
  • Inherit from CommonModbusFunctions in Serial of serial.py and in TCP of of tcp.py

  • Extended RTU client example for Docker usage to load all registers from example JSON file

  • Update internal functions parameter name from slave_id to slave_addr of TCP's _create_mbap_hdr and _validate_resp_hdr function to be the same as in Serial

  • Update Modbus function documentation from TCP specific to common module in USAGE file

  • Renamed docker files:

    • Dockerfile.client -> Dockerfile.client_tcp
    • Dockerfile.host -> Dockerfile.host_tcp
    • Dockerfile.test_tcp_example -> Dockerfile.test_examples