title: How to split a string into small chunks of fixed length in C to send from Arduino BLE?
body: <p>I am trying to send a long String data from my Arduino BLE program to my android app. How I can split my long string into chunks of 20 bytes to send to the app.</p>
  
  <pre><code>char data[] = "lat:29.459612,lon:44.011856,speed:0.75,sats:9";
  char sendBuffer[20];
  int len = sizeof(data);
  int buflen= sizeof(sendBuffer);
  int i = 0;
  for (i=buflen; i&lt;len+buflen; i=i+buflen) {
    memcpy(sendBuffer,data,i);
    *data= *data+i;
    ble.print("AT+BLEUARTTX=");
    ble.println(sendBuffer);
    delay(10000);
  }
  </code></pre>
  
  <p>But I am not getting the expected result. Thank you for any help!</p>