Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comparing operator== for XBeeAddress64 #42

Open
GoogleCodeExporter opened this issue Apr 6, 2015 · 1 comment
Open

Comparing operator== for XBeeAddress64 #42

GoogleCodeExporter opened this issue Apr 6, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

I need to compare the local address to another XBee address I am receiving. 
It's not a big deal to include, maybe somebody else needs this.

What you can do now is:

XBeeAddress64 addr1, addr2;
[...]
if (addr1 == addr2){ ... }


----- XBee.h (Line 304-305) -----

bool operator==(XBeeAddress64 addr);
bool operator!=(XBeeAddress64 addr);

-----XBee.cpp (Line 1048-1054) -----

bool XBeeAddress64::operator==(XBeeAddress64 addr) {
    return ((_lsb == addr.getLsb()) && (_msb == addr.getMsb()));
}

bool XBeeAddress64::operator!=(XBeeAddress64 addr) {
            return !(*this == addr);
}

Original issue reported on code.google.com by [email protected] on 19 Dec 2013 at 3:02

@GoogleCodeExporter
Copy link
Author

Thanks for the suggestion. I put in the code. Currently commented out since I 
didn't have time to test

Original comment by [email protected] on 2 Feb 2014 at 6:48

  • Changed state: Accepted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant