Created
February 12, 2020 05:00
-
-
Save parzibyte/49d931628b4cb806c47b7d7751d235f7 to your computer and use it in GitHub Desktop.
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
String obtenerInterfaz() | |
{ | |
String HtmlRespuesta = "<!DOCTYPE html>" | |
"<html lang='en'>" | |
"<head>" | |
"<meta charset='UTF-8'>" | |
"<meta name='viewport' content='width=device-width, initial-scale=1.0'>" | |
"<title>LEDS by parzibyte</title>" | |
"</head>" | |
"<body>"; | |
HtmlRespuesta += "<h1>Encender y apagar LED</h1>"; | |
HtmlRespuesta += "<p>El LED está actualmente "; | |
if (estadoDelLED) | |
{ | |
HtmlRespuesta += "encendido</p>"; | |
HtmlRespuesta += "<a href='/apagar'>Apagar</a>"; | |
} | |
else | |
{ | |
HtmlRespuesta += "apagado</p>"; | |
HtmlRespuesta += "<a href='/encender'>Encender</a>"; | |
} | |
HtmlRespuesta += "<br><a href='https://parzibyte.me/blog'>By parzibyte</a>"; | |
HtmlRespuesta += "</body>" | |
"</html>"; | |
return HtmlRespuesta; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
APAGAR LED