Skip to content

Instantly share code, notes, and snippets.


parzibyte/rutas.cpp Secret

Created Dec 26, 2020
What would you like to do?
// Servir la página web
void rutaRaiz()
servidor.send(200, "text/html", "<!DOCTYPE html>"
"<meta charset='utf-8'>"
"<meta name='viewport' content='width=device-width'>"
"<title>Servidor web con ESP8266</title>"
"<p>Soy un servidor web embebido dentro de la NodeMCU ESP8266</p>"
"<a href=''>By Parzibyte</a>"
// 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