The events limit reached. You will no longer get new events today
and notification setting is empty and here is my code tell me if there is a mistake in it
// Template ID, Device Name and Auth Token are provided by the Blynk.Cloud
// See the Device Info tab, or Template settings
#define BLYNK_TEMPLATE_ID "TMPL9TyjJvJ_"
#define BLYNK_DEVICE_NAME "Quickstart Device"
#define BLYNK_AUTH_TOKEN "" // I deleted it
// Comment this out to disable prints and save space
#define BLYNK_PRINT Serial
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
char auth[] = BLYNK_AUTH_TOKEN;
// Your WiFi credentials.
// Set password to "" for open networks.
char ssid[] = "med";
char pass[] = "moed5555";
BlynkTimer timer;
int pinValue = 0;
#define LED1 D1
#define LED2 D2
#define Buzzer D3
#define Sensor D0
void setup() {
Serial.begin(9600);
pinMode(LED1, OUTPUT);
pinMode(LED2, OUTPUT);
pinMode(Buzzer, OUTPUT);
pinMode(Sensor, INPUT);
Blynk.begin(auth, ssid, pass);
timer.setInterval(1000L, notifiaction);
}
BLYNK_WRITE(V0) {
pinValue = param.asInt();
}
void notifiaction() {
bool alert_sent = false ;
int sensor = digitalRead(Sensor);
if (pinValue == 1) {
Serial.println("System is ON");
if (sensor == 1 && alert_sent == false) {
Blynk.logEvent("alert_fire");
alert_sent = true ;
digitalWrite(LED2, HIGH);
digitalWrite(LED1, LOW);
digitalWrite(Buzzer, HIGH);
} else if (sensor == 0) {
alert_sent = false ;
digitalWrite(LED2, LOW);
digitalWrite(LED1, HIGH);
digitalWrite(Buzzer, LOW);
}
} else if (pinValue == 0) {
Serial.println("System is OFF");
}
}
void loop() {
Blynk.run();
timer.run();
}