I cannot use this solution since I am using a Xbee DIGIMESH and it will not work with the beta XBee library downloaded from here
This library works with Xbee series 1 and 2 but not all API packets for DIGIMESH
The Xbee library downloaded from here
works with DIGIMESH but not with ARDUINO MICRO.
I fixed my sketch by combining the two zbee libraries into a third which I call XBeeDM32u4 and this is now working with the MICRO and a Zbee DIGIMESH 2.4Mhz.
Attached is the new library; I do not know iof this will work for everyone but it fixed my sketch.