Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created February 12, 2020 05:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save parzibyte/49d931628b4cb806c47b7d7751d235f7 to your computer and use it in GitHub Desktop.
Save parzibyte/49d931628b4cb806c47b7d7751d235f7 to your computer and use it in GitHub Desktop.
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&aacute; 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;
}
@flavio67-inriville
Copy link

ENCENDER LED

@flavio67-inriville
Copy link

APAGAR LED

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment