示例#1
0
		/// <summary>
		/// Initializes a new instance of the class using the specified parameters.
		/// </summary>
		/// <param name="portNumber">The communication (COM) port to use.</param>
		/// <param name="baudRate">The baud rate (speed) to use.</param>
		/// <param name="timeout">The communication timeout in milliseconds.</param>
		public GsmCommMain(int portNumber, int baudRate, int timeout)
		{
			this.logLevel = LogLevel.Verbose;
			this.theDevice = new GsmPhone(portNumber, baudRate, timeout);
			this.theDevice.LogLevel = this.logLevel;
		}
示例#2
0
		/// <summary>
		/// Initializes a new instance of the class using the specified parameters.
		/// </summary>
		/// <param name="portName">The communication (COM) port to use.</param>
		/// <param name="baudRate">The baud rate (speed) to use.</param>
		/// <remarks>Uses the default values: timeout=300ms.</remarks>
		public GsmCommMain(string portName, int baudRate)
		{
			this.logLevel = LogLevel.Verbose;
			this.theDevice = new GsmPhone(portName, baudRate, 300);
			this.theDevice.LogLevel = this.logLevel;
		}
示例#3
0
		/// <summary>
		/// Initializes a new instance of the class using the specified parameters.
		/// </summary>
		/// <param name="portName">The communication (COM) port to use.</param>
		/// <remarks>Uses the default values: baud rate=19200, timeout=300ms.</remarks>
		public GsmCommMain(string portName)
		{
			this.logLevel = LogLevel.Verbose;
			this.theDevice = new GsmPhone(portName, 19200, 300);
			this.theDevice.LogLevel = this.logLevel;
		}
示例#4
0
		/// <summary>
		/// Initializes a new instance of the class using the specified parameters.
		/// </summary>
		/// <param name="portNumber">The communication (COM) port to use.</param>
		/// <remarks>Uses the default values: baud rate=19200, timeout=300ms.</remarks>
		public GsmCommMain(int portNumber)
		{
			this.logLevel = LogLevel.Verbose;
			this.theDevice = new GsmPhone(portNumber, 19200, 300);
			this.theDevice.LogLevel = this.logLevel;
		}
示例#5
0
		/// <summary>
		/// Initializes a new instance of the class using default parameters.
		/// </summary>
		/// <remarks>Uses the default values: port=COM1, baud rate=19200, timeout=300ms.</remarks>
		public GsmCommMain()
		{
			this.logLevel = LogLevel.Verbose;
			this.theDevice = new GsmPhone("COM1", 19200, 300);
			this.theDevice.LogLevel = this.logLevel;
		}