Switch Input to Arduino Serial to Arduino Serial Output Led High or Low.

I did try your new way.

int currState;
int prevState = HIGH;

void loop()
{
   currState = digitalRead(buttonPin);
   if(currState != prevState)
   {
      // A transition occurred...
      if(currState == HIGH)
         Serial.print('1');
      else
         Serial.print('0');
   }
   prevState = currState;

   // Other code

And I did try the ( Serial.begin(115200):wink:
It was just as slow, as the old way. All I am looking to do is send (high or low), over two xbee's.

I would be happy with serial, but line passing on the xbee's is faster, and I don't know why.
I thought it would be easy using tx and rx to send the data faster.