Skip to content

Instantly share code, notes, and snippets.

@parzibyte

parzibyte/setup.cpp Secret

Created Dec 26, 2020
Embed
What would you like to do?
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