public async Task <List <String> > GetDevices() { SendCommand(Commands.DeviceList, ""); USReply rep = await waitForReply(); return(rep.Results); }
public List <String> GetDevices() { List <String> toret = new List <string>(); SendCommand(Commands.DeviceList, ""); USReply rep = waitForReply(1000); return(rep.Results); }
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); }
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); }