Unreadable Characters in Serial Monitor from Android app

Hello:

This is my code:

void loop() {
  if (BTSerial.available()) {
    Serial.println("-------------------------------------------------------------");
    while(BTSerial.available()>0) {
      char c = BTSerial.read();
      Serial.print(c);
    }
    BTSerial.flush();
    Serial.println(" ");
  }
}

I'm attaching the output in serial monitor

¿What is the problem? Thanks

One thing to check is that your serial baud rate matches. In your photo, it's set to 9600 in the serial monitor. What's it set to in your sketch? You're sketch should have a line like - Serial.begin(9600);

Just a thought anyway. That tripped me up once.

If you are using SoftwareSerial with a Bluetooth device, it is more likely you have the incorrect baud rate set in the SoftwareSerial.begin() function for the Bluetooth.

Yeti195 and SuferTim, Great!!! That was the problem. Now work fine.

Thank you very much :slight_smile: