I would like to know how parse correctly my client variable:
YunClient client = server.accept();
The request is like this: action/speed Or: action/settings1/setting2/setting3/... (don't know how much yet)
I tried something but I'm not able to debug it, I don't know how display an integer variable in the console, the outptut is kind of weird actually when I try. (some kind of ASCII transform)
Could you help me to fix what I did wrong?
// Format: COMMAND/SPEED String command = client.readStringUntil('/'); //Serial.println("QueryX:"+client.readString()); int speed = client.parseInt();
Complete source code: https://github.com/Vadorequest/AAD1/blob/master/Arduino/sketch_car/sketch_car.ino