I have 2 XBee Serie 2 modules running ZigBee Pro (2007) connected on 2 differents Arduinos Unos.
Since Arduino Uno is Single Thread, I'm trying to use interrupts to pause the main function and do things aside when there's data received by the XBee module.
I tried to use the attachinterrupt function from Arduino and linking pin 2 (int0) to the Rx from the XBee Module But I don't have any interrupt, either from RISING state, DOWN state or FALLING state.
attachInterrupt(0, interruptXBee, RISING);
Am I doing it wrong by using the Rx pin, should I use another pin? (I've seen RTS/CTS pins but my payloads are smaller than the buffer so there's no useful way I can use those pins) .
Thank you!