Another one asking for help with Wifi Alert
Posted: Wed Jun 10, 2015 11:31 am
Hi everybody. I want to send a wifi alert when my AWC starts and when it finishes, and have been trying to adjust what I have seen others do to fit the bill.
When it starts, I want it to tell me the time, and the WL. When it moves from taking out water to taking in, I want it to tell me the time and the WL, and when it finishes the same.
This is what I have come up with, really appreciate any help:
When it starts, I want it to tell me the time, and the WL. When it moves from taking out water to taking in, I want it to tell me the time and the WL, and when it finishes the same.
This is what I have come up with, really appreciate any help:
Code: Select all
static WiFiAlert AWCstart
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+has+started.+Water+level+at+%d%", h, m, s, ReefAngel.WaterLevel.GetLevel(3));
AWCstart.Send(msg);