Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        public Tuple <float, float, float?> GetCurrentLocation(RadioID id, RadioSystem sys)
        {
            IPAddress ip = sys.GetIPForRadio(id);

            return(this.GetCurrentLocation(ip.ToString()));
        }
Esempio n. 3
0
        public bool SendText(string message, RadioID id, RadioSystem sys, bool confirmReciept)
        {
            IPAddress ip = sys.GetIPForRadio(id);

            return(this.SendText(message, ip.ToString(), confirmReciept));
        }
Esempio n. 4
0
        public int GetRemoteRadioLRRPVersion(RadioID id, RadioSystem sys)
        {
            IPAddress ip = sys.GetIPForRadio(id);

            return(this.GetRemoteRadioLRRPVersion(ip.ToString()));
        }