 
   //getRate();
 }
-

#include <SoftwareSerial.h>

/**

  digitalWrite(9, HIGH);
  delay(500);
  digitalWrite(9, LOW);
  
  delay(5000);
  setBaud();
  delay(500);
  ser.begin(2400);
  delay(500);
  getBaud();
  while(ser.available() > 0) ser.read();

  delay(500);
  loop();
}

void loop() {
  // put your main code here, to run repeatedly:
  char c = 0;
  if (Serial.available() > 0) c = Serial.read();
  if (c == 'l') getPossibleBauds();
  else if (c == 'r') getBaud();
  else if (c == 's') setBaud();
 
  if (ser.available() > 0) Serial.print((char)ser.read());
}

