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

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

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

            Assert.That(localAddress.Equals(XBeeAddress16.ZNET_BROADCAST), Is.True);
        }
Exemple #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;
 }
Exemple #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;
 }
Exemple #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);
 }
Exemple #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;
 }