Releases: brainelectronics/micropython-modbus
Releases · brainelectronics/micropython-modbus
2.0.0-rc13.dev33
Added
- Perform MicroPython based unittests on every
Test
workflow run - Add usage description of docker based MicroPython unittest framework in USAGE
- Add docker compose file based in MicroPython 1.18 image
- Add TCP client Dockerfile, TCP host Dockerfile, unittest Dockerfile and TCP unittest specific Dockerfile. All based on MicroPython 1.18 image
- Add initial test, testing the unittest itself
- Add unittest implementation based on pfalcon's micropython-unittest
- Docstrings available for all functions of functions.py, see #27
- Typing hints available for all functions of functions.py, serial.py and tcp.py, see #27
- Unittest for functions.py, see #16
- Unittest for const.py, see #16
- .readthedocs.yaml for Read The Docs, contributes to #26
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
andrequests
fromumodbus.modbus
, see #18 ModbusRTU
class is part of serial.py, see #18ModbusTCP
class is part of tcp.py, see #18ModbusRTU
andModbusTCP
classes and related functions removed from modbus.py, see #18- Imports changed from:
from umodbus.modbus import ModbusRTU
tofrom umodbus.serial import ModbusRTU
from umodbus.modbus import ModbusTCP
tofrom umodbus.tcp import ModbusTCP
read_coils
andread_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
andto_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
or0
as default values for registers without a specific initial value in modbus.py
Fixed
2.0.0-rc9.dev33
Added
- Perform MicroPython based unittests on every
Test
workflow run - Add usage description of docker based MicroPython unittest framework in USAGE
- Add docker compose file based in MicroPython 1.18 image
- Add TCP client Dockerfile, TCP host Dockerfile, unittest Dockerfile and TCP unittest specific Dockerfile. All based on MicroPython 1.18 image
- Add initial test, testing the unittest itself
- Add unittest implementation based on pfalcon's micropython-unittest
- Docstrings available for all functions of functions.py, see #27
- Typing hints available for all functions of functions.py, serial.py and tcp.py, see #27
- Unittest for functions.py, see #16
- Unittest for const.py, see #16
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
andrequests
fromumodbus.modbus
, see #18 ModbusRTU
class is part of serial.py, see #18ModbusTCP
class is part of tcp.py, see #18ModbusRTU
andModbusTCP
classes and related functions removed from modbus.py, see #18- Imports changed from:
from umodbus.modbus import ModbusRTU
tofrom umodbus.serial import ModbusRTU
from umodbus.modbus import ModbusTCP
tofrom umodbus.tcp import ModbusTCP
read_coils
andread_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
andto_short
moved to functions.py
Fixed
2.0.0-rc8.dev33
Added
- Perform MicroPython based unittests on every
Test
workflow run - Add usage description of docker based MicroPython unittest framework in USAGE
- Add docker compose file based in MicroPython 1.18 image
- Add TCP client Dockerfile, TCP host Dockerfile, unittest Dockerfile and TCP unittest specific Dockerfile. All based on MicroPython 1.18 image
- Add initial test, testing the unittest itself
- Add unittest implementation based on pfalcon's micropython-unittest
- Docstrings available for all functions of functions.py, see #27
- Typing hints available for all functions of functions.py, serial.py and tcp.py, see #27
- Unittest for functions.py, see #16
- Unittest for const.py, see #16
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
andrequests
fromumodbus.modbus
, see #18 ModbusRTU
class is part of serial.py, see #18ModbusTCP
class is part of tcp.py, see #18ModbusRTU
andModbusTCP
classes and related functions removed from modbus.py, see #18- Imports changed from:
from umodbus.modbus import ModbusRTU
tofrom umodbus.serial import ModbusRTU
from umodbus.modbus import ModbusTCP
tofrom umodbus.tcp import ModbusTCP
Fixed
write_multiple_coils
function works as specified. Constructed outputs value was incorrect, see #22
1.2.0
Added
- TCP host example script
- JSON file to set registers on TCP/RTU device
- Bash script to wrap manipulation of TCP modbus register data
- Example boot script
- TOC in README
- Use changelog-based-release action to create a draft release with every merge to develop
- Use changelog-based-release action to create a drafted prerelease release with every PR build, see #20
- USAGE and SETUP files with more details
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
- Typo in RTU client example script
1.2.0-rc5.dev28
Added
- TCP host example script
- JSON file to set registers on TCP/RTU device
- Bash script to wrap manipulation of TCP modbus register data
- Example boot script
- TOC in README
- Use changelog-based-release action to create a draft release with every merge to develop
- Use changelog-based-release action to create a drafted prerelease release with every PR build, see #20
- USAGE and SETUP files with more details
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
- Typo in RTU client example script
1.1.1
Fixed
- Default value of
setup_registers
function parameteruse_default_vals
changed toFalse
to avoid confusion behaviour if not explicitly defined, see #13 - Missing function docstring added to
setup_registers
function write_single_coil
allows0
,1
,False
,True
,0x0
or0xFF00
instead of0x0
and0xFF00
only as set value, see #14
1.1.0
Added
float_to_bin
,bin_to_float
,int_to_bin
functions added toumodbus/functions.py
- Deploy to Test Python Package Index on every PR build with a [PEP440][ref-pep440] compliant
-rc<BUILDNUMBER>.dev<PR_NUMBER>
meta data extension - Test release workflow running only on PRs is archiving and uploading built artifacts to Test Python Package Index
Changed
- Author is explicitly mentioned in
setup.py
instead of used by__author__
variable which has been previously defined inversion.py
but no longer available with autodeploy.
Fixed
- All uncovered flake8 warnings of
umodbus
1.0.0
Added
setup.py
andsdist_upip.py
taken from pfalcon's picoweb repo and PEP8 improvedMIT License
version.py
storing current library versiontyping.py
enabling type hints
Changed
- Moved all uModbus files from
lib/uModbus
intoumodbus
- Update import statements of all files of
umodbus
- Update
README
usage description of MicroPython lib deploy to PyPi - Usage examples in
README
updated with new import path - Update
boot
andmain
files to usebe_helpers
- Enable setting of
max_connections
to TCP socket inmodbus ModbusTCP bind function
andtcp TCPServer bind function
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
Added
- This changelog file
.gitignore
filerequirements.txt
file to setup tools for board interactions- Creation header to all files of
lib/uModbus
in order to provide proper credits to Pycom get_is_bound()
function added tolib/uModbus/tcp.py
to check status of socket binding for the Modbus TCP Server (host)- Example register files to show basic usage with a MyEVSE board
Changed
- Reworked
boot.py
andmain.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 anOSError
as MicroPython raises this type of error in case a socket timeout occured.TimeoutError
is not available on MicroPython compared to WiPy
Fixed
- PEP8 style issues on all files of
lib/uModbus