Skip to content

v1.0.0

Choose a tag to compare

@ichnograph ichnograph released this 31 Jul 18:30

First stable release.

Go library for reading M-Bus (Meter-Bus, EN 13757) meters over TCP or serial.

Highlights since the fork:

  • Decoding errors are explicit. Undecodable values (BCD filler, invalid dates) set ValueErr on the record instead of silently producing a zero, and structural errors fail the frame with ErrInvalidFrame.
  • VIF type codes (VIFEnergyWh, VIFPowerW, ...) and record function names (FunctionInstantaneous, ...) are exported, so records can be selected without magic numbers.
  • Record lookup helpers on DecodedFrame: Find/FindAll with composable matchers, plus Record, Records, Value and Timestamp for the common cases. Historic values, tariff registers and sub-device readings are reachable without scanning DataRecords by hand.

Install:

go get github.com/yottabytesolutions/gombus@v1.0.0