You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#include<Arduino.h>
#include<ewcConfigServer.h>
#include<extensions/ewcMail.h>
EWC::ConfigServer server;
EWC::Mail ewcMail;
bool mailSend = false;
voidsetup() {
EWC::I::get().logger().setBaudRate(115200);
EWC::I::get().logger().setLogging(true);
// add mail configurationEWC::I::get().configFS().addConfig(ewcMail);
// start webServer
server.setup();
}
voidloop() {
// process dns requests and connection state AP/STA
server.loop();
// should be called to perform send and receive ACK
ewcMail.loop();
if (WiFi.status() == WL_CONNECTED) {
// do your stuff if connectedif (!mailSend) {
mailSend = ewcMail.sendChange("Subject", "Device connected");
}
} else {
// or if not yet connected
}
delay(1);
}