#include <WiFi.h>

const char ssid[] = "Wokwi-GUEST";
const char pass[] = "";

void setup() {
  Serial.begin(9600);
  WiFi.begin(ssid, pass);

  Serial.print("Menghubungkan ke WiFi");
  while (WiFi.status() != WL_CONNECTED) {
    Serial.print(".");
    delay(500);
  }
  Serial.print("\nBerhasil Terhubung ke WiFi!");
}

void loop() {
  delay(10);
}