I have a char array of length 10. It gets filled with an unpredictable number of chars, usually up to 6.
char charDummy = "";
When i concatenate the char array with another, I get spaces, which are unwanted in later parsing.
char postStr = ""; strcat(postStr, "&field1="); strcat(postStr,dtostrf(rain05m,6,2,charDummy));
How do I trim a char array directly?
Workaround: loop thru the array and copy valid characters to a new char array with perfect number of rows. Due to memory constraints, I need to be parcimonious with the amount of variables created.