// TotalEnergy implements the api.MeterEnergy interface
TotalEnergy implements the api.MeterEnergy interface
// TotalEnergy implements the api . MeterEnergy interface
func (wb *CfosPowerBrain) TotalEnergy() (float64, error) {
	b, err := wb.conn.ReadHoldingRegisters(cfosRegEnergy, 4)
	if err != nil {
		return 0, err
	}
	return float64(binary.BigEndian.Uint64(b)) / 1e3, err
}
func ( wb * CfosPowerBrain ) TotalEnergy ( ) ( float64 , error ) { b , err := wb . conn . ReadHoldingRegisters ( cfosRegEnergy , 4 ) if err != nil { return 0 , err } return float64 ( binary . BigEndian . Uint64 ( b ) ) / 1e3 , err }
TotalEnergy implements the api.MeterEnergy interface
TotalEnergy implements the api . MeterEnergy interface