MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / rebootHandler

Function rebootHandler

src/webInterface.cpp:612–618  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

610}
611
612esp_err_t rebootHandler(httpd_req_t *req) {
613 if (checkUserWebAuth(req)) {
614 shouldReboot = true;
615 sendText(req, "text/html", "Rebooting");
616 }
617 return ESP_OK;
618}
619
620esp_err_t listFilesHandler(httpd_req_t *req) {
621 if (!checkUserWebAuth(req)) return ESP_OK;

Callers

nothing calls this directly

Calls 2

checkUserWebAuthFunction · 0.85
sendTextFunction · 0.85

Tested by

no test coverage detected