64 bit MSB first 2 bytes are missing

60 views
Skip to first unread message

snoop

unread,
Jul 18, 2012, 11:50:37 AM7/18/12
to xbee...@googlegroups.com
I am missing the first 2 bytes when I convert the serial to hex 

String(rx.getRemoteAddress64().getMsb(),HEX)

returns 13a200

I would like 0013a200

any thoughts?

snoop

unread,
Aug 31, 2012, 11:28:50 AM8/31/12
to xbee...@googlegroups.com
If anybody has any insight, please let me know.
Message has been deleted

snoop

unread,
Aug 31, 2012, 11:38:41 AM8/31/12
to xbee...@googlegroups.com
I think it is because it is an integer and it is clipping the leading zeros. The same would happen to the LSB

void XBeeAddress64::setMsb(uint32_t msb) {
_msb = msb;
Reply all
Reply to author
Forward
0 new messages