Add link to play with gpio 2
On root page add html link to play with gpio 2
This commit is contained in:
parent
d1db2b5d70
commit
1f9986da85
@ -25,7 +25,11 @@ ESP8266WebServer server(80);
|
||||
* connected to this access point to see it.
|
||||
*/
|
||||
void handleRoot() {
|
||||
server.send(200, "text/html", "<h1>You are connected</h1><br/><a href=\"/setup\">Setup</a>");
|
||||
server.send(200, "text/html", "<h1>You are connected</h1><br/>"
|
||||
"<a href=\"/setup\">Setup</a><br/>"
|
||||
"<a href=\"/gpio?gpio=2&value=1\">ON</a><br/>"
|
||||
"<a href=\"/gpio?gpio=2&value=0\">OFF</a><br/>"
|
||||
);
|
||||
}
|
||||
|
||||
void handleSetup() {
|
||||
|
Loading…
Reference in New Issue
Block a user