I am having problems with my project. I cant see on the LCD screen the message i put on the arduino cod, and also the email have not been send even if the condition happend , Dont know why … any help ?
include SoftwareSerial.h
SoftwareSerial DebugSerial(2, 3); // RX, TX
define BLYNK_PRINT DebugSerial
include BlynkSimpleStream.h
// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = "my token ";
// Blynk will work through Serial
Serial.begin(9600);
Blynk.begin(auth, Serial);
lcd.clear(); //Use it to clear the LCD Widget
lcd.print(0, 0, “Hello”); // use: (position X: 0-15, position Y: 0-1, “Message you want to print”)
}
BLYNK_READ(V1){
Blynk.virtualWrite(V1,heartbeat);
}
void sensoractivado(){
if(heartbeat == 14){
Serial.println(“El tipo esta mal”);
Blynk.email("fleipe_rodrigo@hotmail.com", “Subject: Button Logger”, "Esta mal el tipo ");
delay(2000);
}
// converting that reading to voltage, for 3.3v arduino use 3.3
float voltage = reading * 5.0;
voltage /= 1024.0;
// now print out the temperature
float temperatura = (voltage - 0.5) * 100 ; //converting from 10 mv per degree wit 500 mV offset
//to degrees ((voltage - 500mV) times 100)
Blynk.virtualWrite(V1,temperatura);
if(temperatura >= 19){ //Serial.println(“El tipo esta mal”);
Blynk.email(“frodrigo@alumnos.uai.cl”, “Subject: Button Logger”, "Esta mal el tipo ");
Blynk.notify(“Peligro”);
}
}
void loop(){
Blynk.run();
}
When i run the code the function with the widget “notify” actually works , but it doesnt work the email function … dont know why. As you can see both function ( email, and notify) are in the same if , but only notify works… May be becuase i am connecting through usb and not ethernet ?? I dont know what else could it be …help pls
I already solve it , the function always work, but the email was sending to the junk carpet, thats why i didnt saw the email notification , a very noob mistake , thnks for all your help !!