Skip to content

Commit

Permalink
Rename BE meter to MPM
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Apr 27, 2020
1 parent 6539a8f commit 2a02b10
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/mbmd_inspect.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ mbmd inspect [flags]
Valid types are:
RTU
ABB ABB A/B-Series meters
BE Bernecker Engineering MPM3PM meters
DZG DZG Metering GmbH DVH4013 meters
INEPRO Inepro Metering Pro 380
JANITZA Janitza B-Series meters
MPM Bernecker Engineering MPM3PM meters
SBC Saia Burgess Controls ALE3 meters
SDM Eastron SDM630
SDM220 Eastron SDM220
Expand Down
2 changes: 1 addition & 1 deletion docs/mbmd_run.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ mbmd run [flags]
Valid types are:
RTU
ABB ABB A/B-Series meters
BE Bernecker Engineering MPM3PM meters
DZG DZG Metering GmbH DVH4013 meters
INEPRO Inepro Metering Pro 380
JANITZA Janitza B-Series meters
MPM Bernecker Engineering MPM3PM meters
SBC Saia Burgess Controls ALE3 meters
SDM Eastron SDM630
SDM220 Eastron SDM220
Expand Down
6 changes: 3 additions & 3 deletions meters/rs485/mpm3pm.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ func init() {
}

const (
METERTYPE_BE = "BE"
METERTYPE_MPM = "MPM"
)

type MPM3MPProducer struct {
Expand Down Expand Up @@ -50,7 +50,7 @@ func NewMPM3MPProducer() Producer {

// Type implements Producer interface
func (p *MPM3MPProducer) Type() string {
return METERTYPE_BE
return METERTYPE_MPM
}

// Description implements Producer interface
Expand All @@ -60,7 +60,7 @@ func (p *MPM3MPProducer) Description() string {

func (p *MPM3MPProducer) snip(iec Measurement, readlen uint16, transform RTUTransform, scaler ...float64) Operation {
snip := Operation{
FuncCode: ReadInputReg,
FuncCode: ReadHoldingReg,
OpCode: p.Opcodes[iec],
ReadLen: readlen,
Transform: transform,
Expand Down

0 comments on commit 2a02b10

Please sign in to comment.