Hi Mario,
I put a piece of my Inverter monitor where I send a set of value via mail when there is a problem
EMailSender::EMailMessage message;
const String sub = F("Inverter error!"); // Here the subject
message.subject = sub;
const String mp = F("Error on inverter centraline");
const String ft = (fixedTime)?F("OK"):F("NO");
const String sd = (sdStarted)?F("OK"):F("NO");
const String wc = (wifiConnected)?F("OK"):F("NO");
const String sf = (isFileSaveOK)?F("OK"):F("NO");
// Here the message in html format
message.message = mp+
F("<br>Time fixed: ")+ft+
F("<br>SD Initialized: ")+sd+
F("<br>Wifi Connecter :P: ")+wc+
F("<br>Saving file ok: ")+sf+
F("<br>Wrong saving attempts: ")+sdWrongReadNumber
;
EMailSender::Response resp = emailSend.send(emailToSend, message);
The result is
Error on inverter centraline
Time fixed: OK
SD Initialized: OK
Wifi Connecter :P: OK
Saving file ok: NO
Wrong saving attempts: 10
Bye Renzo
Attachments:
You must be
logged in to view attached files.