Esp8266 v1 reading url post value
Posted: Mon May 09, 2016 2:02 am
Hi i'm very new to this chip and arduino..
I've been looking for code so that my esp8266 can read value from url such as http://192.168.1.109:88/?value=1000 and use that value in the program. So far my code can read the returned url such as http://192.168.1.109:88/?buttonallon using the
I need the browser to submit value (1000) to the esp so i can further process it.
Any help would be appreciated.
Thanks
I've been looking for code so that my esp8266 can read value from url such as http://192.168.1.109:88/?value=1000 and use that value in the program. So far my code can read the returned url such as http://192.168.1.109:88/?buttonallon using the
Code: Select all
String request = client.readStringUntil('\r');
request.indexOf("?buttonallon");
if (request.indexOf("?buttonallon") > 0 ) {
digitalWrite(pin1, HIGH);
value1 = HIGH;
}
I need the browser to submit value (1000) to the esp so i can further process it.
Any help would be appreciated.
Thanks