#include <WiFi.h>
const char* wifid = "Wokwi-GUEST";
const char* password = "";
void setup() {
Serial.begin(115200);
Serial.print("Connecting to");
Serial.println(wifid);
WiFi.begin(wifid, password);
while (WiFi.status() != WL_CONNECTED) {
delay(1000);
Serial.println("connecting to wifi...");
}
Serial.println("");
Serial.println("WiFi connected.");
Serial.println("IP address: ");
Serial.println(WiFi.localIP());
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}