Skip to content

Releases: brainelectronics/micropython-modbus

2.0.0-rc13.dev33

09 Dec 10:11
df3c95e
Compare
Choose a tag to compare
2.0.0-rc13.dev33 Pre-release
Pre-release

Added

Changed

  • Use default values for all registers defined in the example JSON
  • TCP host example and TCP client example define a static IP address and skip further WiFi setup steps in case a Docker usage is detected by a failing import of the network module, contributes to #16
  • Define all Modbus function codes as const() to avoid external modifications, contributes to #18
  • Remove dependency to Serial and requests from umodbus.modbus, see #18
  • ModbusRTU class is part of serial.py, see #18
  • ModbusTCP class is part of tcp.py, see #18
  • ModbusRTU and ModbusTCP classes and related functions removed from modbus.py, see #18
  • Imports changed from:
  • from umodbus.modbus import ModbusRTU to from umodbus.serial import ModbusRTU
  • from umodbus.modbus import ModbusTCP to from umodbus.tcp import ModbusTCP
  • read_coils and read_discrete_inputs return a list with the same length as the requested quantity instead of always 8, see #12 and #25
  • Common functions bytes_to_bool and to_short moved to functions.py
  • Use HTTPS URL instead of SSH for submodule
  • Cleanup of root README, content moved to SETUP and USAGE, contributes to #30
  • Moved SETUP and USAGE into docs folder, see #26 contributes to #30
  • Use False or 0 as default values for registers without a specific initial value in modbus.py

Fixed

  • read_coils returns list with amount of requested coils, see #12
  • read_holding_registers returns list with amount of requested registers, see #25

2.0.0-rc9.dev33

03 Dec 10:56
f079614
Compare
Choose a tag to compare
2.0.0-rc9.dev33 Pre-release
Pre-release

Added

Changed

  • Use default values for all registers defined in the example JSON
  • TCP host example and TCP client example define a static IP address and skip further WiFi setup steps in case a Docker usage is detected by a failing import of the network module, contributes to #16
  • Define all Modbus function codes as const() to avoid external modifications, contributes to #18
  • Remove dependency to Serial and requests from umodbus.modbus, see #18
  • ModbusRTU class is part of serial.py, see #18
  • ModbusTCP class is part of tcp.py, see #18
  • ModbusRTU and ModbusTCP classes and related functions removed from modbus.py, see #18
  • Imports changed from:
  • from umodbus.modbus import ModbusRTU to from umodbus.serial import ModbusRTU
  • from umodbus.modbus import ModbusTCP to from umodbus.tcp import ModbusTCP
  • read_coils and read_discrete_inputs return a list with the same length as the requested quantity instead of always 8, see #12 and #25
  • Common functions bytes_to_bool and to_short moved to functions.py

Fixed

  • write_multiple_coils function works as specified. Constructed outputs value was incorrect, see #22
  • read_coils returns list with amount of requested coils, see #12
  • read_holding_registers returns list with amount of requested registers, see #25

2.0.0-rc8.dev33

02 Dec 09:39
82bae32
Compare
Choose a tag to compare
2.0.0-rc8.dev33 Pre-release
Pre-release

Added

Changed

  • Use default values for all registers defined in the example JSON
  • TCP host example and TCP client example define a static IP address and skip further WiFi setup steps in case a Docker usage is detected by a failing import of the network module, contributes to #16
  • Define all Modbus function codes as const() to avoid external modifications, contributes to #18
  • Remove dependency to Serial and requests from umodbus.modbus, see #18
  • ModbusRTU class is part of serial.py, see #18
  • ModbusTCP class is part of tcp.py, see #18
  • ModbusRTU and ModbusTCP classes and related functions removed from modbus.py, see #18
  • Imports changed from:
  • from umodbus.modbus import ModbusRTU to from umodbus.serial import ModbusRTU
  • from umodbus.modbus import ModbusTCP to from umodbus.tcp import ModbusTCP

Fixed

  • write_multiple_coils function works as specified. Constructed outputs value was incorrect, see #22

1.2.0

12 Nov 19:46
Compare
Choose a tag to compare

Added

Changed

  • Add more info to TCP client example script
  • Update modules submodule to 1.3.0
  • Line breaks are no longer used in this changelog for enumerations
  • Issues are referenced as #123 instead of [#123][ref-issue-123] to avoid explicit references at the bottom or some other location in the file
  • Scope of contents permissions in release and test release workflow is now write to use auto release creation

Fixed

1.2.0-rc5.dev28

12 Nov 16:50
c067eb4
Compare
Choose a tag to compare
1.2.0-rc5.dev28 Pre-release
Pre-release

Added

Changed

  • Add more info to TCP client example script
  • Update modules submodule to 1.3.0
  • Line breaks are no longer used in this changelog for enumerations
  • Issues are referenced as #123 instead of [#123][ref-issue-123] to avoid explicit references at the bottom or some other location in the file
  • Scope of contents permissions in release and test release workflow is now write to use auto release creation

Fixed

1.1.1

11 Nov 08:06
ea37dc2
Compare
Choose a tag to compare

Fixed

  • Default value of setup_registers function parameter use_default_vals changed to False to avoid confusion behaviour if not explicitly defined, see #13
  • Missing function docstring added to setup_registers function
  • write_single_coil allows 0, 1, False, True, 0x0 or 0xFF00 instead of 0x0 and 0xFF00 only as set value, see #14

1.1.0

03 Nov 10:30
b2b042a
Compare
Choose a tag to compare

Added

Changed

  • Author is explicitly mentioned in setup.py instead of used by __author__ variable which has been previously defined in version.py but no longer available with autodeploy.

Fixed

  • All uncovered flake8 warnings of umodbus

1.0.0

26 Feb 14:13
aad586f
Compare
Choose a tag to compare

Added

Changed

Removed

  • MicroPython helpers module no longer used
  • MicroPython ESP WiFi Manager module no longer used
  • Lib folder of dependency modules no longer used
  • Commented print debug messages in several files of umodbus

0.1.0

20 Feb 15:40
49115e2
Compare
Choose a tag to compare

Added

Changed

  • Reworked boot.py and main.py for simple usage
  • README file with usage examples
  • Replaced WiPy specific calls in lib/uModbus files with MicroPython 1.16 or higher calls
  • Limit number of concurrent socket connections to the Modbus TCP Server (host) to 10
  • Return on _accept_request() in case of an OSError as MicroPython raises this type of error in case a socket timeout occured. TimeoutError is not available on MicroPython compared to WiPy

Fixed