Skip to content

Instantly share code, notes, and snippets.

@tassioauad
Created June 9, 2021 15:15
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tassioauad/c5dafc7c66ae711d5dde56b76090c93b to your computer and use it in GitHub Desktop.
Save tassioauad/c5dafc7c66ae711d5dde56b76090c93b to your computer and use it in GitHub Desktop.
#include <WiFi.h>
const char* ssid = "MEUWIFI";
const char* password = "SENHA";
WiFiClient espClient;
void setup() {
Serial.begin(9600);
Serial.print("Conectando ao WiFi... ");
WiFi.begin(ssid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
Serial.println("WiFi conectado!");
Serial.println("Endereço 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