  if (Serial.available() > 0) {  //获取串口消息
    String receivedString = "";
    while (Serial.available()) {
      receivedString = Serial.readStringUntil('\n');  // 读取直到遇到换行符
    }
//receivedString 这个就是获取到的整句消息
}