2.0.0-rc8.dev33
Pre-release
Pre-release
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