public static string Create(PlugwiseSerialPortRequest req,string logId,string mac)
        {
            string output = "";
            switch (req)
            {
                case PlugwiseSerialPortRequest.history:

                    output = PlugwiseSerialPortFactory.getHistoryMessage(mac,logId);
                    break;
            }

            return output;
        }
        /// <summary>
        /// This factory returns the strings that will be sent to the serial port when a certain command needs the be activated
        /// </summary>
        /// <param name="req">The type of request that has to be sent to the plugs</param>
        /// <param name="mac">The mac address of the receiver</param>
        /// <returns></returns>
        public static string Create(PlugwiseSerialPortRequest req,string mac)
        {
            string output = "";
            switch (req)
            {
                case PlugwiseSerialPortRequest.on:
                    output = PlugwiseSerialPortFactory.GetOnMessage(mac);
                    break;
                case PlugwiseSerialPortRequest.off:
                    output = PlugwiseSerialPortFactory.getOffMessage(mac);
                    break;
                case PlugwiseSerialPortRequest.status:
                    output = PlugwiseSerialPortFactory.getStatusMessage(mac);
                    break;
                case PlugwiseSerialPortRequest.calibration:
                    output = PlugwiseSerialPortFactory.getCalibrationMessage(mac);
                    break;
                case PlugwiseSerialPortRequest.powerinfo:
                    output = PlugwiseSerialPortFactory.getPowerinfoMessage(mac);
                    break;

            }
            return output;
        }