Récupérer les valeurs dans string
bonjour à tous
Je voudrais diviser par 10 chaque valeur retourné de ce string sous arduino mais je n’arrive pas à les récupérer dans un tableau
pourriez-vous m’aider
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| void setup()
{
Serial.begin(9600);
while (!Serial) {;}
}
void loop()
{
String stringOne = "0 0.319131750, 1 0.319536470, 0 0.320013340, 1 0.320422550, 0 0.320806540, 1 0.321220170, 0 0.321632110, ";
String stringTwo = stringOne;
stringTwo.replace("0 0.", "");
stringTwo.replace("1 0.", "");
Serial.println("string original: " + stringOne);
Serial.println("string modifie: " + stringTwo);
while (true);
} |