Skip to content

Instantly share code, notes, and snippets.

@gsampallo
Created July 10, 2020 16:28
Show Gist options
  • Save gsampallo/52a214a5950c58c28bfe8c940738e009 to your computer and use it in GitHub Desktop.
Save gsampallo/52a214a5950c58c28bfe8c940738e009 to your computer and use it in GitHub Desktop.
DPRE - Cómo conectarse a una red WiFi con ESP8266
#include <ESP8266WiFi.h>
const char* ssid = "NOMBRE_RED";
const char* password = "PASSWORD_RED";
void setup() {
Serial.begin(115200);
WiFi.begin(ssid,password);
Serial.print("Conectando");
while(WiFi.status() != WL_CONNECTED) {
Serial.print(".");
delay(100);
}
Serial.println("Conectado");
Serial.print("Direccion IP: ");
Serial.println(WiFi.localIP());
}
void loop() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment