You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: changelog.md
+35-2
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,38 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
15
15
<!-- ## [Unreleased] -->
16
16
17
17
## Released
18
+
## [2.0.0] - 2022-12-03
19
+
### Added
20
+
- Perform MicroPython based unittests on every `Test` workflow run
21
+
- Add usage description of docker based MicroPython unittest framework in [USAGE](USAGE.md)
22
+
- Add [docker compose file](docker-compose.yaml) based in MicroPython 1.18 image
23
+
- Add [TCP client Dockerfile](Dockerfile.client), [TCP host Dockerfile](Dockerfile.host), [unittest Dockerfile](Dockerfile.tests) and [TCP unittest specific Dockerfile](Dockerfile.test_tcp_example). All based on MicroPython 1.18 image
24
+
- Add initial test, testing the unittest itself
25
+
- Add [unittest](unittest.py) implementation based on pfalcon's [micropython-unittest](https://github.com/pfalcon/pycopy-lib/blob/56ebf2110f3caa63a3785d439ce49b11e13c75c0/unittest/unittest.py)
26
+
- Docstrings available for all functions of [functions.py](umodbus/functions.py), see #27
27
+
- Typing hints available for all functions of [functions.py](umodbus/functions.py), [serial.py](umodbus/serial.py) and [tcp.py](umodbus/tcp.py), see #27
28
+
- Unittest for [functions.py](umodbus/functions.py), see #16
29
+
- Unittest for [const.py](umodbus/const.py), see #16
30
+
31
+
### Changed
32
+
- Use default values for all registers defined in the [example JSON](registers/example.json)
33
+
-[TCP host example](examples/tcp_host_example.py) and [TCP client example](examples/tcp_client_example.py) 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
34
+
- Define all Modbus function codes as `const()` to avoid external modifications, contributes to #18
35
+
- Remove dependency to `Serial` and `requests` from `umodbus.modbus`, see #18
36
+
-`ModbusRTU` class is part of [serial.py](umodbus/serial.py), see #18
37
+
-`ModbusTCP` class is part of [tcp.py](umodbus/tcp.py), see #18
38
+
-`ModbusRTU` and `ModbusTCP` classes and related functions removed from [modbus.py](umodbus/modbus.py), see #18
39
+
- Imports changed from:
40
+
-`from umodbus.modbus import ModbusRTU` to `from umodbus.serial import ModbusRTU`
41
+
-`from umodbus.modbus import ModbusTCP` to `from umodbus.tcp import ModbusTCP`
42
+
-`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
43
+
- Common functions `bytes_to_bool` and `to_short` moved to [functions.py](umodbus/functions.py)
44
+
45
+
### Fixed
46
+
-`write_multiple_coils` function works as specified. Constructed outputs value was incorrect, see #22
47
+
-`read_coils` returns list with amount of requested coils, see #12
48
+
-`read_holding_registers` returns list with amount of requested registers, see #25
49
+
18
50
## [1.2.0] - 2022-11-13
19
51
### Added
20
52
-[TCP host example script](examples/tcp_host_example.py)
@@ -28,7 +60,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
28
60
29
61
### Changed
30
62
- Add more info to [TCP client example script](examples/tcp_client_example.py)
31
-
- Update [modules submodule](modules) to `1.3.0`
63
+
- Update [modules submodule](https://github.com/brainelectronics/python-modules/tree/43bad716b7db27db07c94c2d279cee57d0c8c753) to `1.3.0`
32
64
- Line breaks are no longer used in this changelog for enumerations
33
65
- 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
34
66
- Scope of contents permissions in release and test release workflow is now `write` to use auto release creation
@@ -115,8 +147,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
115
147
- PEP8 style issues on all files of [`lib/uModbus`](lib/uModbus)
0 commit comments