#define BLYNK_PRINT Serial
#define BLYNK_TEMPLATE_ID "TMPL6kYMQkaS0"
#define BLYNK_TEMPLATE_NAME "Zenkai"
#define BLYNK_AUTH_TOKEN "cLyVhq_I2lD617RdlxpZji_5LoHrbN6I"
#include <WiFi.h>
#include <BlynkSimpleEsp32.h>
const char *ssid = "Wokwi-GUEST";
const char *password = "";
void sendFixedData() {
const char* msg = "OSOREROOOOO!";
Blynk.virtualWrite(V1, msg); // Send the fixed value (1) to Virtual Pin V1 in the Blynk app
Serial.print("Sent Fixed Value: ");
Serial.println(msg);
}
// This function is called when a value is written to Virtual Pin V1
// BLYNK_WRITE(V1) {
// String valueReceived = param.asString(); // Read the value sent from the app (e.g., from a slider or button)
// Serial.println("MEIYO NO SHI DA!!!");
// }
void setup() {
Serial.begin(115200); // Start serial communication for debugging
Blynk.begin(BLYNK_AUTH_TOKEN, ssid, password); // Initialize Blynk connection
}
void loop() {
Blynk.run(); // Keep the Blynk connection alive
sendFixedData(); // Send the fixed value (1) to Blynk every loop cycle
delay(1000); // Wait for 1 second before sending the next data
}