#include <WiFi.h>
const char* ssid = "Wokwi-GUEST";
const char* password = "";
int ledPin = 18; // Pin 18 for the LED
void setup() {
Serial.begin(115200);
pinMode(ledPin, OUTPUT); // Set the LED pin as an output
WiFi.begin(ssid, password);
Serial.print("Connecting to ");
Serial.println(ssid);
while (WiFi.status() != WL_CONNECTED) {
delay(1000);
Serial.print(".");
}
Serial.println("");
Serial.println("WiFi connected");
Serial.print("IP address: ");
Serial.println("Started Streaming Online!");
Serial.println(WiFi.localIP());
digitalWrite(ledPin, HIGH); // Turn on the LED
}
void loop() {
// Your main code here
}