// NewCfosPowerBrain creates a cFos meter
NewCfosPowerBrain creates a cFos meter
// NewCfosPowerBrain creates a cFos meter
func NewCfosPowerBrain(uri string, id uint8) (*CfosPowerBrain, error) {
	conn, err := modbus.NewConnection(uri, "", "", 0, modbus.TcpFormat, id)
	if err != nil {
		return nil, err
	}
	log := util.NewLogger("cfos")
	conn.Logger(log.TRACE)
	wb := &CfosPowerBrain{
		conn: conn,
	}
	return wb, nil
}
func NewCfosPowerBrain ( uri string , id uint8 ) ( * CfosPowerBrain , error ) { conn , err := modbus . NewConnection ( uri , " " , " " , 0 , modbus . TcpFormat , id ) if err != nil { return nil , err } log := util . NewLogger ( " " ) conn . Logger ( log . TRACE ) wb := & CfosPowerBrain { conn : conn , } return wb , nil }
NewCfosPowerBrain creates a cFos meter
NewCfosPowerBrain creates a cFos meter