Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created December 26, 2020 21:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/3c5460bc341621ae7b9555543e3f57d4 to your computer and use it in GitHub Desktop.
Save parzibyte/3c5460bc341621ae7b9555543e3f57d4 to your computer and use it in GitHub Desktop.
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