#include <WiFi.h>
const char*ssid="KNGowd";
const char*password="Kngs1432@";
void initwifi();
void setup() {
// put your setup code here, to run once:
Serial.begin(115200);
initwifi();
//Serial.println("Hello, ESP32!");
}
void loop() {
// put your main code here, to run repeatedly:
delay(10); // this speeds up the simulation
}
void initwifi(){
Serial.println("");
WiFi.mode(WIFI_STA);
WiFi.begin(ssid,password);
Serial.println("");
Serial.println("connecting to wifi....");
}