#include <WiFi.h>
// Name of the router and password
const char* ssid = "Wokwi-GUEST";
const char* password = "";
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
// Start wifi - 2 parameters (ssid & password)
WiFi.begin(ssid, password);
Serial.println("Connecting to WiFi");
// Connection status
while (WiFi.status() != WL_CONNECTED) {
delay(500);
Serial.print(".");
}
// Connection Info
Serial.println("");
Serial.println("WiFi connected!");
}
void loop() {
}