#include "WiFi.h"
#define led 12

const char* SSID = "Wokwi-GUEST";
const char* pass = "";


void setup() {
  // put your setup code here, to run once:
  Serial.begin(115200);
  Serial.println("Hello, ESP32!");
  pinMode(led, OUTPUT);
  WiFi.begin(SSID, pass);
  while(WiFi.status() == WL_CONNECTED){
    Serial.println("Tidak Terkoneksi");
  }
  Serial.println("Terkoneksi");
  delay(500);
  digitalWrite(led, HIGH);
}

void loop() {
  // put your main code here, to run repeatedly:
  delay(10); // this speeds up the simulation
}