Paul Keyes
unread,Apr 16, 2012, 2:00:16 PM4/16/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to xbee-api
Hi All,
I'm working on a project in which I have multiple remote xbee radios
(attached to arduinos, using the axbee arduino library) all
communicating with a single computer using the java xbee api. I have
two questions:
1. When the computer receives a response (response =
xbee.getResponse();), is there a way to easily get the MY address of
the sending radio?
2. What is the best way to access the payload in the received
packet? I am currently doing this:
receivedPacket = response.getProcessedPacketBytes();
PayloadByte0 = receivedPacket[receivedPacket.length-3];
...because I have found by reading the logs and by trial and error
that the payload byte 0 ends up at that position in the receivedPacket
array... but it seems like there should be a better way?
Thanks so much,
Paul