コード例 #1
0
 /**
  * Class constructor. Instantiates a new {@code Raw802Device} object in the
  * given port name and baud rate.
  *
  * @param port Serial port name where 802.15.4 device is attached to.
  * @param baudRate Serial port baud rate to communicate with the device.
  *                 Other connection parameters will be set as default (8
  *                 data bits, 1 stop bit, no parity, no flow control).
  *
  * @throws ArgumentException if {@code baudRate < 0}.
  * @throws ArgumentNullException if {@code port == null}.
  */
 public Raw802Device(string port, int baudRate)
     : this(XBee.CreateConnectiontionInterface(port, baudRate))
 {
 }
コード例 #2
0
 /**
  * Class constructor. Instantiates a new {@code Raw802Device} object in the
  * given serial port name and parameters.
  *
  * @param port Serial port name where 802.15.4 device is attached to.
  * @param serialPortParameters Object containing the serial port parameters.
  *
  * @throws ArgumentNullException if {@code port == null} or
  *                              if {@code serialPortParameters == null}.
  *
  * @see SerialPortParameters
  */
 public Raw802Device(String port, SerialPortParameters serialPortParameters)
     : this(XBee.CreateConnectiontionInterface(port, serialPortParameters))
 {
 }
コード例 #3
0
 /**
  * Class constructor. Instantiates a new {@code DigiMeshDevice} object in the
  * given port name and baud rate.
  *
  * @param port Serial port name where DigiMesh device is attached to.
  * @param baudRate Serial port baud rate to communicate with the device.
  *                 Other connection parameters will be set as default (8
  *                 data bits, 1 stop bit, no parity, no flow control).
  *
  * @throws ArgumentException if {@code baudRate < 0}.
  * @throws ArgumentNullException if {@code port == null}.
  */
 public DigiMeshDevice(String port, int baudRate)
     : this(XBee.CreateConnectiontionInterface(port, baudRate))
 {
 }