// NewCfosPowerBrainFromConfig creates a cFos meter from generic config
NewCfosPowerBrainFromConfig creates a cFos meter from generic config
// NewCfosPowerBrainFromConfig creates a cFos meter from generic config
func NewCfosPowerBrainFromConfig(other map[string]interface{}) (api.Meter, error) {
	cc := struct {
		URI string
		ID  uint8
	}{}
	if err := util.DecodeOther(other, &cc); err != nil {
		return nil, err
	}
	return NewCfosPowerBrain(cc.URI, cc.ID)
}
func NewCfosPowerBrainFromConfig ( other map [ string ] interface { } ) ( api . Meter , error ) { cc := struct { URI string ID uint8 } { } if err := util . DecodeOther ( other , & cc ) ; err != nil { return nil , err } return NewCfosPowerBrain ( cc . URI , cc . ID ) }
NewCfosPowerBrainFromConfig creates a cFos meter from generic config
NewCfosPowerBrainFromConfig creates a cFos meter from generic config