示例#1
0
        public void DisplayWiFiNodesInfo()
        {
            var toString = $"{HostName.Trim().PadRight(20, ' ').Substring(0, 20)}, " +
                           $"{IpAddress.Trim().PadRight(15)}, {MacAddress}," +
                           //$"{ Interface}, " +
                           $"{ UpTime.ToString("c").PadLeft(11)}, { TxRateMb.ToString().PadLeft(3)}, { RxRateMb.ToString().PadLeft(3)}, " +
                           //$"{ Info}, " +
                           $"{SignalLeveldB.ToString().PadLeft(3)}, {NoiseLeveldB.ToString().PadLeft(4)}, {SignalToNoiseRatiodB.ToString().PadLeft(4)}, {SignalQuality.ToString().PadLeft(3)}%";

            Console.WriteLine(toString);
        }
示例#2
0
        }                                       // should always be <= 100

        public override string ToString()
        {
            return($"{MacAddress}, {Interface}, {UpTime.ToString().PadLeft(11)}, {TxRateMb.ToString().PadLeft(3)}, {RxRateMb.ToString().PadLeft(3)}, {Info}, " +
                   $"{SignalLeveldB.ToString().PadLeft(2)}, {NoiseLeveldB.ToString().PadLeft(2)}, {SignalToNoiseRatiodB.ToString().PadLeft(2)}, {SignalQuality.ToString().PadLeft(3)}");
        }