public void DoAction(Dictionary <string, string> cmdLineArgs, SimpleConnect scApp)
        {
            if (!validateArgs(cmdLineArgs))
            {
                Console.WriteLine("ERROR" + getLastError());
                return;
            }

            //protocol and interfaceName will now be populated
            if (scApp == null)
            {
                logger.Error("SimpleConnect was not set");
                return;
            }
            //scApp.saveParameterFile("192.168.1.100");
            scApp.downloadFile(ipAddress, filePath, type);
            logger.Info("Downloand Complete");
        }
        public void DoAction(Dictionary <string, string> cmdLineArgs, SimpleConnect scApp)
        {
            if (!validateArgs(cmdLineArgs))
            {
                Console.WriteLine("ERROR" + getLastError());
                return;
            }

            //protocol and interfaceName will now be populated
            if (scApp == null)
            {
                logger.Error("SimpleConnect was not set");
                return;
            }

            if (protocol == CommsProtocol.NONE || protocol == CommsProtocol.RTU)
            {
                logger.Error("Comms Protocol RTU is not supported yet");
            }
            scApp.DiscoverDrives();
        }