#define BLYNK_TEMPLATE_ID "TMPL67JmyHtx4"
#define BLYNK_TEMPLATE_NAME "Control Lamp671001"
#define BLYNK_AUTH_TOKEN "nUe9S9pUhIJzbyUvnDoUqDRND2kFqGWs"
#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[] = "";
BLYNK_WRITE(V0)
{
int value = param.asInt();
Blynk.virtualWrite(V1, value);
}
void setup()
{
// Debug console
Serial.begin(115200);
Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass);
}
void loop()
{
Blynk.run();
}