#include <WiFi.h>

//Name of router and password
const char* ssid="Wokwi-GUEST";
const char* password="";
void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  WiFi.begin(ssid,password);
  Serial.println("connecting to wifi.......");
  //conect divice wifi
  while (WiFi.status() != WL_CONNECTED){
    delay(500);
    Serial.print(".");
  }
  Serial.println("");
  Serial.println("connected");
  Serial.print("WiFi Address: ");
  Serial.println(WiFi.localIP());
}

void loop() {
  
}