Пример #1
0
 /// <summary>
 /// Class constructor. Instantiates a new <see cref="XBeeBLEDevice"/> object with the given
 /// parameters.
 /// </summary>
 /// <remarks>
 /// The Bluetooth password must be provided before calling the <see cref="Open"/> method,
 /// either through this constructor or the <see cref="SetBluetoothPassword(string)"/> method.
 /// </remarks>
 /// <param name="deviceAddress">The address of the Bluetooth device. It must follow the
 /// format <c>00112233AABB</c> or <c>00:11:22:33:AA:BB</c>.</param>
 /// <param name="password">Bluetooth password (can be <c>null</c>).</param>
 /// <exception cref="ArgumentException">If <paramref name="deviceAddress"/> does not follow
 /// the format <c>00112233AABB</c> or <c>00:11:22:33:AA:BB</c>.</exception>
 public XBeeBLEDevice(string deviceAddress, string password)
     : base(XBee.CreateConnectionInterface(deviceAddress))
 {
     bluetoothPassword = password;
 }
Пример #2
0
 /// <summary>
 /// Class constructor. Instantiates a new <see cref="XBeeBLEDevice"/> object with the given
 /// parameters.
 /// </summary>
 /// <remarks>
 /// The Bluetooth password must be provided before calling the <see cref="Open"/> method,
 /// either through this constructor or the <see cref="SetBluetoothPassword(string)"/> method.
 /// </remarks>
 /// <param name="device">Bluetooth device to connect to.</param>
 /// <param name="password">Bluetooth password (can be <c>null</c>).</param>
 /// <seealso cref="IDevice"/>
 public XBeeBLEDevice(IDevice device, string password)
     : base(XBee.CreateConnectionInterface(device))
 {
     bluetoothPassword = password;
 }