I have this method:
void getWeatherData() {
String resp = "";
Process p;
p.begin("python2.7");
p.addParameter("/root/weather.py");
p.run();
while (p.available() > 0) {
char c = p.read();
resp = resp + c;
}
Serial.print(resp);
Serial.flush();
}
In the serial monitor, I see the string 70.7|45|1030.29|06:05|20:04|04 May 2015 22:24
. The delimiter here is the pipe. Now, the parts I take a send them to methods that puts the values on the TFT screen.
However, I fail to understand how to split this long string into individual parts.
Can somebody help?
Thanks
EC