tjhowse / modbus4mqtt

Modbus TCP <-> MQTT glue. YAML configuration. Robust.
Other
81 stars 35 forks source link

Add register type field #25

Closed tjhowse closed 3 years ago

tjhowse commented 3 years ago

Adds support for type fields in registers for #24.

Value values are uint16 and int16. More to follow for #6.

Also adds a heap of new registers for the SH5k-20. These registers use the new json_key field to emulate the output of pvstats by publishing all the numbers in one JSON message.

codecov[bot] commented 3 years ago

Codecov Report

Merging #25 (a0e1e4b) into master (526af57) will increase coverage by 0.04%. The diff coverage is 96.15%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #25      +/-   ##
==========================================
+ Coverage   95.58%   95.63%   +0.04%     
==========================================
  Files           6        6              
  Lines         747      824      +77     
==========================================
+ Hits          714      788      +74     
- Misses         33       36       +3     
Impacted Files Coverage Δ
tests/test_modbus.py 94.85% <90.00%> (-0.63%) :arrow_down:
modbus4mqtt/modbus_interface.py 94.69% <94.44%> (-0.05%) :arrow_down:
modbus4mqtt/modbus4mqtt.py 94.11% <100.00%> (+0.33%) :arrow_up:
modbus4mqtt/version.py 100.00% <100.00%> (ø)
tests/test_mqtt.py 98.54% <100.00%> (+0.13%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 526af57...a0e1e4b. Read the comment docs.