Send long Text from SpeechRecognizer over BLE to Arduino

TextToBLE.aia (175.1 KB) edu.mit.appinventor.ble.aix (178.3 KB)

Good day

I would like to send generated text from speech recognition via bluetooh to my Arduino.

This works only at the beginning of the text.
This is probably due to the 64 bits the Arduino can receive.

But I want to send whole texts that speak to you to my Arduino.

Unfortunately I can't get any further, is it possible to send letter by letter and send spaces?

I'm a beginner and I'm stuck here, can someone give me a tip?

Arduino:

char appData = ' ';
String inData = "";

void setup() {

  Serial.begin(115200);
}


void loop() {

  while (Serial.available() > 0) {
    appData = Serial.read();
    inData = inData + appData;
    if (appData == '\0') {
      Serial.print("StringReceived:");
      Serial.println(inData);
      inData = "";
    }
  }
}