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

Series2_Rx doesn't catch messages #89

Closed gusantor closed 3 years ago

gusantor commented 3 years ago

Using an ESP32 attached through serial port to an Xbee S2 coordinator

At the other hand, another Xbee S2 router, sending messages

I can see messages arriving to coordinator when using XCTU

Sadly, no through this library

Upoading Series2_Rx example to ESP32 it just stay silent, no led blinking, no message detected

BUT, messages arrives, I can do

if(Serial.available()>245){
  if ( Serial.read() == 0x7E ){
    for(int i=0;i<245;i++){
      da = Serial.read();
      Serial.print(da,DEC);
  }
}

Messages are there, it's just they aren't catched by the library ... gessing

Thanks any way, but hopefully you can get this to work

gusantor commented 3 years ago

Of course . I should have read the Developers guide before

Sorry me

When I set MAX_FRAME_DATA_SIZE to 255, I got the message

Thanks