#define BLYNK_PRINT Serial
/* Fill in information from Blynk Device Info here */
//#define BLYNK_TEMPLATE_ID "TMPxxxxxx"
//#define BLYNK_TEMPLATE_NAME "Device"
#define BLYNK_TEMPLATE_ID "TMPL6b6DCoFTm"
#define BLYNK_TEMPLATE_NAME "EV Station"
#define BLYNK_AUTH_TOKEN "gATsaKcgnf5UvbTPEhxJNdz61ZfRi0nT"
#include <WiFi.h>
#include <WiFiClient.h>
#include <BlynkSimpleEsp32.h>
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "Wokwi-GUEST";
char pass[] = "";
//to get the value from the terminal text input
BLYNK_WRITE(V0) {
String string = param.asStr();
Serial.print("Received:");
Serial.println(string);
Blynk.virtualWrite(V0, "Send:"+string);
}
void setup()
{
// Debug console
Serial.begin(9600);
Blynk.begin(BLYNK_AUTH_TOKEN, ssid, pass);
}
void loop()
{
Blynk.run();
}