My project was run very well, but now dont sen the mail, nothing was modify. what can I do for get well? regards
Should you share the code that everyone can see how it is to go next for the advice?
@oaaguila if you go over the 100 emails per day limit you will incur a temporary block. Could you have gone over the limit?
1 Like
Sure, is next:
#define BLYNK_PRINT Serial //Comente esto para desactivar impresiones y ahorrar espacio
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
char auth[] = "48220bb4be23492d82a7565b5ffbcbac";
//Datos para la conexion de Red Wifi.
char ssid[] = "Inbursa HQ"; //Nombre de la red WIFI
char pass[] = "5510107539"; //contraseña de la red WIFI
void setup()
{
Serial.begin(9600);
Blynk.begin(auth, ssid, pass);
Blynk.email("omaraxxxxxxxxxx@hotmail.com","Alarma WiFi", "Proyecto encendido.");
pinMode(5, INPUT);// pin D1(GPIO5) como entrada
pinMode(4,OUTPUT);// pin D2(GPIO4) como Salida
}
void Alarma()
{
Serial.println(digitalRead(4));
delay(200);
int Sensor1 = digitalRead(4); // variable para almacenar los estados del PIR
if (Sensor1 == 1)
{
Blynk.email("omaraxxxxxxxxxx@hotmail.com", "Asunto:", "Luz encendida");
delay(2000);
}
int Sensor = digitalRead(5);
if (Sensor == 0)
{
Serial.println("Alarma Activada"); //Imprime por el monitor serial
Blynk.email("omaraxxxxxxxxx@hotmail.com", "Asunto:", "Alarma activada");
delay(200);
}
}
void loop()
{
Alarma();
Blynk.run();
}
http://docs.blynk.cc/#widgets-notifications-email
Limitations :
- Maximum allowed email + subject + message length is 120 symbols. However you can increase this limit if necessary by adding
#define BLYNK_MAX_SENDBYTES XXX
to you sketch. WhereXXX
is desired max length of your email. For example for ESP you can set this to 1200 max length#define BLYNK_MAX_SENDBYTES 1200
. The#define BLYNK_MAX_SENDBYTES 1200
must be included before any of the Blynk includes. - Only 1 email per 15 seconds is allowed
- In case you are using gmail on the Local Server you are limited with 500 mails per day (by google). Other providers may have similar limitations, so please be careful.
- User is limited with 100 messages per day in the Blynk Cloud;
thank you, I reduce to 60 symbols and now all is working. regards.