#define BLYNK_TEMPLATE_ID "TMPL3Sl6ZTRNJ"
#define BLYNK_TEMPLATE_NAME "ECE237"
#define BLYNK_AUTH_TOKEN "EtoDo7OaJBqdFGSOTEeVR4zBMoJsKB2X"
#define BLYNK_PRINT Serial
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
char auth[] = BLYNK_AUTH_TOKEN;
char ssid[] = "Wokwi-GUEST";
char pass[] = "";
BLYNK_WRITE(V4)
{
if(param.asInt()==1){
digitalWrite(25, HIGH);
}
else{
digitalWrite(25, LOW);
}
}
void setup()
{
// Debug console
Serial.begin(115200);
Blynk.begin(auth, ssid, pass);
pinMode(25, OUTPUT);
// You can also specify server:
//Blynk.begin(auth, ssid, pass, "blynk.cloud", 80);
//Blynk.begin(auth, ssid, pass, IPAddress(192,168,1,100), 8080);
}
void loop()
{
Blynk.run();
}