Ejemplo n.º 1
0
        public void setSignalStrength(string comport)
        {
            int _SignalStrength = DoerSMSDeviceCommander.getSignalStrength(comport);

            if (_SignalStrength >= 0 && _SignalStrength <= 6)
            {
                this.SignalStrength = "1";
            }
            else if (_SignalStrength >= 7 && _SignalStrength <= 12)
            {
                this.SignalStrength = "2";
            }
            else if (_SignalStrength >= 13 && _SignalStrength <= 18)
            {
                this.SignalStrength = "3";
            }
            else if (_SignalStrength >= 19 && _SignalStrength <= 24)
            {
                this.SignalStrength = "4";
            }
            else if (_SignalStrength >= 25 && _SignalStrength <= 31)
            {
                this.SignalStrength = "5";
            }
            else
            {
                this.SignalStrength = "0";
            }
        }
Ejemplo n.º 2
0
 public void setNetwork(string comport)
 {
     this.Network = DoerSMSDeviceCommander.Find_Operator_Name(comport);
 }