-
-
Save parzibyte/1555726723dc0cd8964f8ccafc66475f 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
// Servir la página web | |
void rutaRaiz() | |
{ | |
servidor.send(200, "text/html", "<!DOCTYPE html>" | |
"<html>" | |
"<head>" | |
"<meta charset='utf-8'>" | |
"<meta name='viewport' content='width=device-width'>" | |
"<title>Servidor web con ESP8266</title>" | |
"</head>" | |
"<body>" | |
"<p>Soy un servidor web embebido dentro de la NodeMCU ESP8266</p>" | |
"<a href='https://parzibyte.me/blog'>By Parzibyte</a>" | |
"</body>" | |
"</html>"); | |
} | |
// Manejador de 404 | |
void rutaNoEncontrada() | |
{ | |
servidor.send(404, "text/plain", "No encontrado"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment