Arduino Micro with XBee

Hi,
I can’t get an XBee talking when hooked up to the Arduino Micro. I know this because I do not see another XBee at another computer listening to the one connected to the Micro.
I use an XBee Pro S1 connected to the Arduino Micro as shown in the picture attached.

When I connect the XBee with the Arduino UNO it works perfectly and I see the output on another computer. So this is the evidence I connected it properly.
I changed TX and RX already without effect. And I use the line …

while (!Serial) {};

recommended for the Arduino Micro.

Complete coding is as follows:

void setup() {
  Serial.begin(9600); 
  while (!Serial) {};    
}

void loop()
{
 Serial.println(millis());
 delay(1000);
}

I suspect here some specialities with the Arduino Micro.

Thanks for your help.
Regards, AgeBee

Two remarks:

  1. I made a mistake in the coding. It must read:
 while (!Serial) ;

However, this does not change the result, i.e. I still can't see any output at the second XBee.

  1. I see the TX LED flashing on the Arduino Micro.

So, it seems to me, that the data do not reach the XBee.

AgeBee:
Two remarks:

  1. I made a mistake in the coding. It must read:
 while (!Serial) ;

However, this does not change the result

It's the same thing.

Even better would be:

while (!Serial)  {
}

That way it's easy to see that it's an empty loop.

Found the solution !
Since the Arduino Micro is connected through a USB cable I can’t use PINs 0 and 1 since the USB uses them.
I used SoftwareSerial to get me two other PINS, 8 and 9.

Code is like this, I used a LED to check optically.

#include <SoftwareSerial.h>

SoftwareSerial mySerial(7, 8); // RX, TX

int led = 13;

void setup() {                

  while (!Serial); 

  pinMode(led, OUTPUT);   
  Serial.begin(9600);  
  mySerial.begin(9600);
}

void loop() {
  digitalWrite(led, HIGH);   
  mySerial.println(millis());
  delay(1000);               
  digitalWrite(led, LOW);    
  Serial.println(millis());
  delay(1000); 
}