I concatenate a 2nd single character string to my 1st string.
I print it to verify 2nd single char got appended.
Then I concatenate a 3rd string to first 1st string.
I print it and see 1st string + 3rd string, but 2nd single char is now gone.
String publication_event_data; publication_event_data = String::format( "%d,%s,%s,%f,%f,%.2f,%.2f%%,%d,%d,%s,", COMMUNICATION_FORMAT_VERSION, TRACKER_DEVICE_NAME, PROGRAM_VERSION, record_latitude, record_longitude, fuel.getVCell(), fuel.getSoC(), present_GPS_fix, record_timestamp, publish_function_code ); // 'c' = callback from mobile 'm' = manual initiated 'T' =
publication_event_data.concat( "1" ); // 2nd string
Print of publication_event_data shows both strings.
String next_record = String::format( "%f,%f,%d,", record_latitude, record_longitude, record_timestamp ); publication_event_data.concat( next_record );
Now publication_event_data no longer has 2nd string “1” .