示例#1
0
        public void TestXBeeAddress16IsNotEqual()
        {
            var localAddress1 = new XBeeAddress16(0xFFFE);
            var localAddress2 = new XBeeAddress16(0xAABB);

            Assert.That(localAddress1.Equals(localAddress2), Is.False);
        }
示例#2
0
 public TxRequest(XBeeAddress64 destSerial, XBeeAddress16 destAddress, byte[] payload)
     : this(payload)
 {
     DestinationSerial = destSerial;
     DestinationAddress = destAddress;
 }
示例#3
0
        public void TestXBeeAddress16IsEqualObject()
        {
            var localAddress = new XBeeAddress16(0xAABB);

            Assert.That(localAddress.Equals(new Object()), Is.False);
        }
示例#4
0
        public void TestXBeeAddress16IsEqual()
        {
            var localAddress = new XBeeAddress16(0xFFFE);

            Assert.That(localAddress.Equals(XBeeAddress16.ZNET_BROADCAST), Is.True);
        }
示例#5
0
 /// <summary>
 ///   TODO: Update Comments
 ///
 /// </summary>
 /// <param name="serialNumber" type="NETMF.OpenSource.XBee.Api.XBeeAddress64">
 ///     <para>
 ///
 ///     </para>
 /// </param>
 /// <param name="networkAddress" type="NETMF.OpenSource.XBee.Api.XBeeAddress16">
 ///     <para>
 ///
 ///     </para>
 /// </param>
 public NodeInfo(XBeeAddress64 serialNumber, XBeeAddress16 networkAddress)
 {
     NetworkAddress = networkAddress;
     SerialNumber   = serialNumber;
     NodeIdentifier = string.Empty;
 }
示例#6
0
        public void TestXBeeAddress16IsEqualSame()
        {
            var localAddress = new XBeeAddress16(0xAABB);

            Assert.That(localAddress.Equals(localAddress), Is.True);
        }
 public ExplicitTxRequest(XBeeAddress64 destSerial, XBeeAddress16 destAddress, byte[] payload, byte srcEndpoint, byte destEndpoint, ushort clusterId, ushort profileId)
     : this(payload, srcEndpoint, destEndpoint, clusterId, profileId)
 {
     DestinationSerial  = destSerial;
     DestinationAddress = destAddress;
 }
示例#8
0
 public TxRequest(XBeeAddress64 destSerial, XBeeAddress16 destAddress, byte[] payload)
     : this(payload)
 {
     DestinationSerial  = destSerial;
     DestinationAddress = destAddress;
 }
 public void TestXBeeAddress16IsNotEqual()
 {
     var localAddress1 = new XBeeAddress16(0xFFFE);
     var localAddress2 = new XBeeAddress16(0xAABB);
     Assert.That(localAddress1.Equals(localAddress2), Is.False);
 }
 public void TestXBeeAddress16IsEqualSame()
 {
     var localAddress = new XBeeAddress16(0xAABB);
     Assert.That(localAddress.Equals(localAddress), Is.True);
 }
 public void TestXBeeAddress16IsEqualObject()
 {
     var localAddress = new XBeeAddress16(0xAABB);
     Assert.That(localAddress.Equals(new Object()), Is.False);
 }
 public void TestXBeeAddress16IsEqual()
 {
     var localAddress = new XBeeAddress16(0xFFFE);
     Assert.That(localAddress.Equals(XBeeAddress16.ZNET_BROADCAST), Is.True);
 }
示例#13
0
 /// <summary>
 ///   TODO: Update Comments
 ///     
 /// </summary>
 /// <param name="serialNumber" type="NETMF.OpenSource.XBee.Api.XBeeAddress64">
 ///     <para>
 ///         
 ///     </para>
 /// </param>
 /// <param name="networkAddress" type="NETMF.OpenSource.XBee.Api.XBeeAddress16">
 ///     <para>
 ///         
 ///     </para>
 /// </param>
 public NodeInfo(XBeeAddress64 serialNumber, XBeeAddress16 networkAddress)
 {
     NetworkAddress = networkAddress;
     SerialNumber = serialNumber;
     NodeIdentifier = string.Empty;
 }