#define LED_BUILTIN 2
/* Fill-in information from Blynk Device Info here */
#define BLYNK_TEMPLATE_ID "TMPL5e-hIzCZ6"
#define BLYNK_TEMPLATE_NAME "IoT Based Device Power Status Indicator"
#define BLYNK_AUTH_TOKEN "0N46nEiU6fzlQKHkdkOjNAIQglCxwC5D"
/* Comment this out to disable prints and save space */
#define BLYNK_PRINT Serial
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "Wokwi-GUEST";
char pass[] = "";
void setup()
{
// Debug console
Serial.begin(115200);
pinMode(LED_BUILTIN, 2);
Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass);
// You can also specify server:
//Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass, "blynk.cloud", 80);
//Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass, IPAddress(192,168,1,100), 8080);
}
void loop()
{
Blynk.run();
digitalWrite(LED_BUILTIN, HIGH);
delay(1000);
digitalWrite(LED_BUILTIN, LOW);
delay(1000);
}