Skip to content

Instantly share code, notes, and snippets.

@jonathanhculver
Created June 24, 2013 03:19
Show Gist options
  • Save jonathanhculver/5847563 to your computer and use it in GitHub Desktop.
Save jonathanhculver/5847563 to your computer and use it in GitHub Desktop.
arduino web server processing input
while (client.connected()) {
if (client.available()) {
if(finder.find("GET /")) {
while(finder.findUntil("led", "\n\r")) {
char type = client.read();
int val = finder.getValue();
lightStatus = changeLight(val);
}
}
//pass a simple http response to the browser
printWebResponse(client, lightStatus);
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment