Esempio n. 1
0
        public async Task <List <String> > GetDevices()
        {
            SendCommand(Commands.DeviceList, "");
            USReply rep = await waitForReply();

            return(rep.Results);
        }
Esempio n. 2
0
        public List <String> GetDevices()
        {
            List <String> toret = new List <string>();

            SendCommand(Commands.DeviceList, "");
            USReply rep = waitForReply(1000);

            return(rep.Results);
        }
Esempio n. 3
0
        public USInfo Info()
        {
            SendCommand(Commands.Info, "");
            USReply result = waitForReply(100);
            USInfo  info   = new USInfo();

            info.version    = result.Results[0];
            info.romPlaying = result.Results[2];
            info.flags      = result.Results.Skip(3).ToList();
            return(info);
        }
Esempio n. 4
0
        public async Task <USInfo> Info()
        {
            SendCommand(Commands.Info, "");
            USInfo info = new USInfo();

            try
            {
                USReply result = await waitForReply();

                info.version    = result.Results[0];
                info.romPlaying = result.Results[2];
                info.flags      = result.Results.Skip(3).ToList();
            } catch (Exception e) {
                Console.WriteLine(e.Message);
            }
            return(info);
        }