-
-
Save parzibyte/3c5460bc341621ae7b9555543e3f57d4 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
void setup(void) | |
{ | |
// Aquí puedes agregar varias redes. La tarjeta se conectará a la más cercana | |
wifiMulti.addAP("Red", "Contraseña"); | |
// wifiMulti.addAP("Otra red", "Contraseña"); | |
// Esperar conexión WiFi | |
while (wifiMulti.run() != WL_CONNECTED) | |
{ | |
delay(250); | |
} | |
// Configurar rutas | |
servidor.on("/", rutaRaiz); | |
servidor.onNotFound(rutaNoEncontrada); | |
// Iniciar servidor | |
servidor.begin(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment