andrewrapp / xbee-arduino

Arduino library for communicating with XBee radios in API mode
GNU General Public License v2.0
334 stars 162 forks source link

getRemoteAddress16 now uses byte 1 and 2 #90

Open Xanore opened 3 years ago

Xanore commented 3 years ago

Small bugfix.

Framedata contains the following information. Framedata[0] = ApiId Framedata[1] = msb address Framedata[2] = lsb address

The remote address was invalid because byte 0 and 1 were used instead of 1 and 2.