Created
July 10, 2020 16:28
-
-
Save gsampallo/52a214a5950c58c28bfe8c940738e009 to your computer and use it in GitHub Desktop.
DPRE - Cómo conectarse a una red WiFi con ESP8266
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
#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