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