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

Do not receive binary packet when there is a 0x7E byte in the #31

Open rsotomayor opened 8 years ago

rsotomayor commented 8 years ago

It does happen when I send binary data (for example a float) that contains 0x7E (start byte). To fix I have defined ATAP as 1 // #define ATAP 2

define ATAP 1

It works, but it is correct ??

matthijskooijman commented 8 years ago

Did you read the documentation about needing to configure AP=2 in your XBee device? It sounds like your device has AP=1, so changing that define is needed to let the library's expectations match reality. However, running with AP=1 is less reliable than AP=2.