private CommandResult RadioIP(string[] args) { CommandResult res = new CommandResult(); if (args.Length < 1) { res.Success = false; res.ex = new ArgumentException("Missing required argument radio ID!"); return(res); } uint id = uint.Parse(args[0]); float rssi = 0.0F; IPAddress ret = sys.GetIPForRadio(new RadioID(id)); res.Success = true; res.Data["ip"] = ret; return(res); }
public Tuple <float, float, float?> GetCurrentLocation(RadioID id, RadioSystem sys) { IPAddress ip = sys.GetIPForRadio(id); return(this.GetCurrentLocation(ip.ToString())); }
public bool SendText(string message, RadioID id, RadioSystem sys, bool confirmReciept) { IPAddress ip = sys.GetIPForRadio(id); return(this.SendText(message, ip.ToString(), confirmReciept)); }
public int GetRemoteRadioLRRPVersion(RadioID id, RadioSystem sys) { IPAddress ip = sys.GetIPForRadio(id); return(this.GetRemoteRadioLRRPVersion(ip.ToString())); }