#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.println("Menghubungkan ke WiFi");
while(WiFi.status() != WL_CONNECTED){
Serial.print(".");
delay(500);
}
Serial.println("WiFi terhubung");
}
void loop() {
// put your main code here, to run repeatedly:
}