#include <WiFi.h>
// Replace these with your Wokwi Wi-Fi credentials
const char* ssid = "Wokwi-GUEST";
const char* password = "";
void setup() {
Serial.begin(115200);
// Start Wi-Fi in Station mode
WiFi.begin(ssid, password);
Serial.print("Connecting to Wi-Fi");
// Wait until connected
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
// Display the IP address
Serial.println("\nConnected to Wi-Fi!");
Serial.print("IP Address: ");
Serial.println(WiFi.localIP());
}
void loop() {
// Keep looping with no additional logic
delay(1000);
}