MCPcopy Create free account
hub / github.com/OpenEPaperLink/OpenEPaperLink / loop

Function loop

ESP32_AP-Flasher/src/main.cpp:195–218  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195void loop() {
196 ws.cleanupClients();
197 wm.poll();
198
199 if (intervalSysinfo.doRun()) {
200 wsSendSysteminfo();
201 }
202 if (intervalVars.doRun() && config.runStatus != RUNSTATUS_STOP) {
203 checkVars();
204 }
205 if (intervalSaveDB.doRun() && config.runStatus != RUNSTATUS_STOP) {
206 saveDB("/current/tagDB.json");
207 }
208 if (intervalContentRunner.doRun() && (apInfo.state == AP_STATE_ONLINE || apInfo.state == AP_STATE_NORADIO)) {
209 contentRunner();
210 }
211
212#ifdef HAS_TFT
213 extern void yellow_ap_display_loop(void);
214 yellow_ap_display_loop();
215#endif
216
217 vTaskDelay(100 / portTICK_PERIOD_MS);
218}

Callers

nothing calls this directly

Calls 6

wsSendSysteminfoFunction · 0.85
checkVarsFunction · 0.85
saveDBFunction · 0.85
contentRunnerFunction · 0.85
yellow_ap_display_loopFunction · 0.85
doRunMethod · 0.80

Tested by

no test coverage detected