andrewrapp / xbee-arduino

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

Receiving byte array #82

Open rikben opened 5 years ago

rikben commented 5 years ago

In the Series1_Rx example, a single byte is received. In the sending example however, an array is sent. For my application I need to be able to receive an array. How can I tweak the code to receive an array of bytes?

Any help is great!

SteffanoP commented 5 years ago

There is a way that you could receive the Serial data without having to use this library, you just need to use the instruction Serial.read() (wich reads the serial data incoming from the hardware serial), then you would read an entire frame in API mode.