#define LED_BUILTIN1 2
#define LED_BUILTIN2 4
/* Fill-in information from Blynk Device Info here */
#define BLYNK_TEMPLATE_ID "TMPL5QHqZ8D1R"
#define BLYNK_TEMPLATE_NAME "IoT Based Device Power Status Indicator v3"
#define BLYNK_AUTH_TOKEN "aP46KtcLkR1aNNrANQjFxMbLlS2HrbTE"
/* 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_BUILTIN1, OUTPUT);
pinMode(LED_BUILTIN2, OUTPUT);
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_BUILTIN1, HIGH);
digitalWrite(LED_BUILTIN2, HIGH);
delay(1000);
digitalWrite(LED_BUILTIN1, LOW);
digitalWrite(LED_BUILTIN2, LOW);
delay(1000);
}