I have tried Example Blynk Email but email from Blynk.email() never arrived
IDE 1.6.5, ESP8266-12 Standalone with NodeMCU/Generic, Blynk.Arduino Library 0.2.4
Maybe I am doing something wrong…
BTW: When I push HW button on pin 2, ESP going to reset
thx
Roman
//#define BLYNK_DEBUG
#define BLYNK_PRINT Serial
#include <SPI.h>
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>
#include <SimpleTimer.h>
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "a5e0bc86050642389dea4d1203582xxx";
SimpleTimer timer;
void setup()
{
Serial.begin(9600);
Blynk.begin(auth, "xxx", "xxx");
while (!Blynk.connect()) {
// Wait until connected
}
// Send email immediately on startup
Blynk.email("x@xxx.name", "Test email", "Email on startup");
BLYNK_LOG("It should be send a email now!");
Blynk.virtualWrite(1,HIGH);
timer.setInterval(1000, TimerON);
// Setup email button on pin 2
pinMode(2, INPUT_PULLUP);
// Attach pin 2 interrupt to our handler
attachInterrupt(2, emailOnButtonPress, CHANGE);
}
void TimerON ()
{
Blynk.virtualWrite(4, millis()/1000);
}
void emailOnButtonPress()
{
// Invert state, since button is "Active LOW"
int isButtonPressed = !digitalRead(2);
if (isButtonPressed) {
BLYNK_LOG("Button is pressed.");
Blynk.virtualWrite(2,HIGH);
Blynk.email("x@xxx.name", "Test email button press", "Bla bla bla");
}
}
void loop()
{
Blynk.run();
timer.run();
You can’t send email without email widget. We implemented this for Android, but not for iOS. Very soon we will release update for iOS with email widget. Sorry for inconvenience.
Hola, tengo problemas con la notificación del Blynk.email no me llegan a mi bandeja, no llegan por spam, uso la App desde móvil Android, tengo el widget de correo electrónico configurado correctamente!
Anteriormente funcionaba sin problemas, no he superado los 100 correos diarios.
Ayuda!
Mi código:
#define BLYNK_PRINT Serial #include <ESP8266WiFi.h> #include <BlynkSimpleEsp8266.h>