// connecting to wifi without any encryption
# include <WiFi.h>
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
delay(10);
WiFi.begin("Wokwi-GUEST", ""); // Wokwi-GUEST is the SSID of the wifi network provide here.
while (WiFi.status() != WL_CONNECTED){ // here WL_CONNECTED is a constant to indicate the wifi is connected
delay(500);
Serial.print(".");
}
// printing the connection status when it is connected
Serial.println("Connected..!");
Serial.println(WiFi.localIP()); // the ip address assign to the esp board
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}