Ciao a tutti,
sto cercando esempi o sketch per gestire piu variabili GET, il problema che mi ha mandato in palla è, non sapere come gestire più di 2 variabili, nel mio caso potrebbero variare da 1 a 8.
esempio:
http://?D100=15_1&D100=15_2&D101=10_1&…
HTTP_req.replace(“GET /?”, “”);
HTTP_req.replace(" HTTP/1.1", “”);
String firstVal, secondVal;
for (int i = 0; i < HTTP_req.length(); i++) {
if (HTTP_req.substring(i, i+1) == “&”) {
firstVal = HTTP_req.substring(0, i).toInt();
secondVal = HTTP_req.substring(i+1).toInt();
}
}
Dove a me interessano tutti e 3 i dati: D100, 15, 1… come nel primo caso…
Grazie in anticipo