This project has moved. For the latest updates, please go here.


XBeeAddress64.Value setter masks out bytes


The XBeeAddress64 class's Value property masks out the high word of the LSB half of the address.
var x64 = new XBeeAddress64(0x1234567812345678)
generates an address of 0x1234567800005678
This is because the Value setter:
_lsb = (uint)(value & 0xFFFF);
should be
_lsb = (uint)(value & 0xFFFFFFFF);
Off topic, but having Equals() overrides are great too:
    public override bool Equals(object obj)
        XBeeAddress64 that = obj as XBeeAddress64;
        return (that != null) && that._msb == this._msb &&that._lsb == this._lsb;
    public override int GetHashCode()
        return (int)_lsb;
Closed Apr 28, 2012 at 7:05 PM by jcsaez


wrote Apr 28, 2012 at 7:05 PM

Resuelto con el conjunto de cambios 76819.

wrote Feb 14, 2013 at 7:10 PM

wrote May 16, 2013 at 8:49 AM