Created
June 24, 2013 03:19
-
-
Save jonathanhculver/5847563 to your computer and use it in GitHub Desktop.
arduino web server processing input
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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