Skip to content

Releases: brainelectronics/micropython-modbus

2.3.3-rc31.dev59

29 Jan 12:25
b086d0c
Compare
Choose a tag to compare
2.3.3-rc31.dev59 Pre-release
Pre-release

Fixed

  • Add link to RTU documentation examples from RTU examples files and root README, relates to #7
  • Add missing ESP32, RP2 and pyboard pin usage for RTU in examples and documentation, relates to #7 and #17
  • Add missing issue template file, see #46

2.3.2

10 Jan 22:02
8de96e9
Compare
Choose a tag to compare

Added

Changed

Fixed

  • Basic RTU host example in root README uses correct init values, optional parameters are listed after mandatory ones
  • Remove outdated warning sections about #35 bug from USAGE

2.3.1

08 Jan 09:39
f810a5c
Compare
Choose a tag to compare

Added

  • Unittest to read multiple coils at any location if defined as list, verifies #35
  • Unittests to write a single coil or multiple coils at any location if defined as list, verifies fix #15 and #24

Fixed

  • All configured register of a client can be accessed and modified individually, see #35
  • Resolved overlapping register positions in example JSON file
  • Register length of EXAMPLE_IREG in TCP and RTU examples corrected to 1 instead of 2

2.3.1-rc26.dev53

06 Jan 15:55
6ef6f0d
Compare
Choose a tag to compare
2.3.1-rc26.dev53 Pre-release
Pre-release

Added

  • Unittest to read multiple coils at any location if defined as list, verifies #35
  • Unittests to write a single coil or multiple coils at any location if defined as list, verifies fix #15 and #24

Fixed

  • All configured register of a client can be accessed and modified individually, see #35
  • Resolved overlapping register positions in example JSON file
  • Register length of EXAMPLE_IREG in TCP and RTU examples corrected to 1 instead of 2

2.3.0

06 Jan 10:43
b97de0d
Compare
Choose a tag to compare

Added

  • Custom callback functions can be registered on client (ModbusRTU or ModbusTCP) side with new parameters on_set_cb and on_get_cb available from modbus.py functions add_coil and add_hreg. Functions add_ist and add_ireg support only on_get_cb, see #31
  • Example callback usage shown in TCP client example
  • Documentation for callback functions in USAGE

Changed

  • Typing hint Callable is now subscriptable

2.3.0-rc25.dev51

06 Jan 10:40
23eb970
Compare
Choose a tag to compare
2.3.0-rc25.dev51 Pre-release
Pre-release

Added

  • Custom callback functions can be registered on client (ModbusRTU or ModbusTCP) side with new parameters on_set_cb and on_get_cb available from modbus.py functions add_coil and add_hreg. Functions add_ist and add_ireg support only on_get_cb, see #31
  • Example callback usage shown in TCP client example
  • Documentation for callback functions in USAGE

Changed

  • Typing hint Callable is now subscriptable

2.3.0-rc22.dev51

03 Jan 16:27
f798706
Compare
Choose a tag to compare
2.3.0-rc22.dev51 Pre-release
Pre-release

Added

  • Custom callback functions can be registered on client (ModbusRTU or ModbusTCP) side with new parameters on_set_cb and on_get_cb available from modbus.py functions add_coil and add_hreg. Functions add_ist and add_ireg support only on_get_cb, see #31
  • Example callback usage shown in TCP client example
  • Documentation for callback functions in USAGE

Changed

  • Typing hint Callable is now subscriptable

2.2.0

02 Jan 23:31
59e1c6c
Compare
Choose a tag to compare

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

2.2.0-rc21.dev48

02 Jan 23:16
6e795f7
Compare
Choose a tag to compare
2.2.0-rc21.dev48 Pre-release
Pre-release

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

2.1.3

31 Dec 07:35
ea11da8
Compare
Choose a tag to compare

Fixed

  • uart_id can be specified during init of ModbusRTU and Serial class and is no longer hardcoded to 1, but set as 1 by default to ensure backwards compability, see #7 and #43
  • RTU Client example and USAGE documentation updated with new uart_id parameter