#include <WiFi.h>
char* ssid = "Wokwi-GUEST";
char* pass = "";
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
WiFi.mode(WIFI_STA);//esp mode station
WiFi.begin(ssid, pass);
while (WiFi.status() != WL_CONNECTED){
Serial.println("enteni...");
delay(100);
}
Serial.println("connect wifi");
Serial.print("serial IP:");
Serial.println(WiFi.localIP());
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}