Skip to content

Code quality improvements for stick

Choose a tag to compare

@brefra brefra released this 23 Jan 20:04
· 7170 commits to main since this release
b0bb0be
  • Bug-fix: Power history was not reported (0 value) during last week of the month
  • Improvement: Validate message checksums
  • Improvement: Do a single ping request to validate if node is on-line
  • Improvement: Guard Scan sensitivity setting to medium
  • Improvement: Move general module code of messages, nodes, connection to the init.py files.
  • Improvement: Do proper timeout handling while sequence counter resets (once every 65532 messages)
  • Improvement: Better code separation. All logic is in their designated files:
    1. Connection (connection/*.py)
    2. Data parsing (parser.py)
    3. Data encoding/decoding of message (messages/*.py)
    4. Message handling - Initialization & transportation (controller.py)
    5. Message processing - Do the required stuff (stick.py & nodes/*.py)
  • Improvement: Resolves all flake8 comments