#include <WiFi.h>
char SSIDName[] = "Wokwi-GUEST"; //nome da rede WiFi
char SSIDPass[] = ""; //senha da rede WiFI
void setup() {
Serial.begin(9600);
Serial.print("Conectando-se ao Wi-Fi");
WiFi.begin(SSIDName, SSIDPass); //inicializa WiFi
while (WiFi.status() != WL_CONNECTED) { //repete enquanto nao estabelece conexao
delay(100);
Serial.print(".");
}
Serial.println();
Serial.println("Conectado!");
Serial.print("IP: ");
Serial.println(WiFi.localIP()); //imprime o endereco IP
}
void loop() {
}