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/ewcUpdater.h>
EWC::ConfigServer server;
EWC::Updater ewcUpdater;
voidsetup() {
EWC::I::get().logger().setBaudRate(115200);
EWC::I::get().logger().setLogging(true);
// add updater configurationEWC::I::get().configFS().addConfig(ewcUpdater);
// start webServer
server.setup();
}
voidloop() {
// process dns requests and connection state AP/STA
server.loop();
// should be called to perform reboot after successful update
ewcUpdater.loop();
if (WiFi.status() == WL_CONNECTED) {
// do your stuff if connected
} else {
// or if not yet connected
}
delay(1);
}