uart buffer problem

hi i ravi kumar working on thermal printer. data is receiving from Bluetooth.

this is code while(mySerial.available()>0) {

char character =; // Receive a single character from the software serial port Data.concat(character); // Add the received character to the receive buffer

if (character == '\n') {

Serial.print(" "); Serial.println(Data); // delay(500); Thermal.println(Data); delay(5000); // Add your code to parse the received line here....

// Clear receive buffer so we're ready to receive the next line Data = "";



And your question is?

Please read this:- How to use this forum Because your post is breaking the rules about posting code.