How can I adjust my code so that the value that I print with my BLE device does not get chopped up when I receive it on an app? I am using a BLE device (https://www.adafruit.com/product/1697) that I use to print data to an app. I can successfully connect the BLE to the app and receive the data but the result however gets chopped up. 

What I am sending is a lat, lng value (that I gather with a library called TinyGPS++ http://arduiniana.org/libraries/tinygpsplus/) and the code looks like this:

BTLEserial.Print::print(gps.location.lat(), 8);
BTLEserial.print (", ");
BTLEserial.Print::print(gps.location.lng(), 8);


So for example if the latitude is: 32.12345678, it comes like this to the app: 3, new row, 2, new row etc. 

So my question is, how can I adjust my code to make sure it does not send the result chopped up but instead sends it's complete value?
how can I adjust my code to make sure it does not send the result chopped up but instead sends it's complete value?


The BLE device uses a package approach and the print member functions only support strings (char vectors and Arduino String). Construct the message as a String:

double lat = gps.location.lat();
double lng = gps.location.lng();
String msg = String(lat, 8) + String(", ") + String(lng, 8);
BTLEserial.print(msg); 


Cheers!