Hi,
I’ve searched and can’t seem to figure out how to pass information from my variable: GarageOpenMinutes in the body of my email. I have the Blynk.notify working correctly, but can’t figure out the syntax for Blynk.email. Basically, I’d like to somehow send the number stored in GarageOpenMinutes to the body of an email.
One of the strings I’ve tried is below. The body of the text in the email is “rage open for:” Which I believe has something to do with I’m asking to be notified after 2 minutes if it is open. It seems to be deleting the “Ga” from “Garage” when 2 minutes pass instead of showing the number “2”.
Blynk.notify(String("Garage door is open for: ") + GarageOpenMinutes + String(" minutes"));
Blynk.email("MyEmail@gmail.com", "Garage Open", "Garage open for: ") + GarageOpenMinutes (" minutes"); // send email
Thank you for any help or advice.