#include <WiFi.h>
const char ssid[]="Wokwi-GUEST";
const char pass[]="";
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
WiFi.begin(ssid,pass);
Serial.print("Menghubungkan ke Wifi");
while (WiFi.status() != WL_CONNECTED){
Serial.print(".");
delay(50);
}
Serial.println("");
Serial.println("Berhasil Terkoneksi");
}
void loop() {
// put your main code here, to run repeatedly:
// delay(10); // this speeds up the simulation
delay(10);
}