This is an old question that seems it doesn't want to disappear, but after all and reading old posts and google around it, I've not found the solution :-( I try to do a simple task like convert one String object to int (or float).
int length = values.length(); char time[length+1]; values.toCharArray(time, sizeof(time)); int t = atoi(time); Serial.println(t); Serial.println(time);
If values has 227759 value... when I execute the code before, I receive the next result:
The char time is correct, but fails miserably the atoi() conversion... What am I doing wrong? It turns me mad!
Thanks for advance! Xavier