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);