read Serial and convert to String




void loop(){
  
   
    
  String content = "";
  char character;

  while(Serial.available()) {
      character = Serial.read();
      content.concat(character);
  }

  if (content != "") {
    Serial.println(content);
  } 
  
}



Leave a Reply