Why am I not receiving my WiFiAlert emails?
Posted: Mon Mar 16, 2015 11:18 pm
I think I must be confused as to how the WiFiAlert class works...
I have an automatic water change system that works wonderfully. I'm going out of town for 10 days and I want to make sure I am notified immediately if my daily AWC fails. I have all kinds of failsafes that will shut down the AWC and future AWCs. I also have a boolean that triggers the following code if an AWC fails:
To test whether my alert system is working properly, I set up the following code to email me every time an AWC occurs:
Everything compiles fine, but I never receive an email. I know my email address is correct in my portal because the alerts I set there (like low temp, etc) send me emails. What gives? How am I screwing this up?
Thanks,
Gabe
I have an automatic water change system that works wonderfully. I'm going out of town for 10 days and I want to make sure I am notified immediately if my daily AWC fails. I have all kinds of failsafes that will shut down the AWC and future AWCs. I also have a boolean that triggers the following code if an AWC fails:
Code: Select all
//This function will send me an email alert if an AWC fails.
void AWCAlert()
{
static WiFiAlert AWCReport;
char msg[30];
char h[2];
char m[2];
char s[2];
dtostrf((float) hour(), 2, 0, h);
dtostrf((float) minute(), 2, 0, m);
dtostrf((float) second(), 2, 0, s);
sprintf(msg, "The AWC at %s:%s:%s failed.", h, m, s);
AWCReport.Send(msg);
}Code: Select all
static WiFiAlert tempAlert;
char tempMsg[20] = "An AWC occurred.";
tempAlert.Send(tempMsg);Thanks,
Gabe