MCPcopy Create free account
hub / github.com/UtilitechAS/amsreader-firmware / configFileUpload

Method configFileUpload

lib/SvelteUi/src/AmsWebServer.cpp:2721–2736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2719}
2720
2721void AmsWebServer::configFileUpload() {
2722 if(!checkSecurity(1))
2723 return;
2724
2725 HTTPUpload& upload = uploadFile(FILE_CFG);
2726 if(upload.status == UPLOAD_FILE_END) {
2727 performRestart = true;
2728 snprintf_P(buf, BufferSize, RESPONSE_JSON,
2729 "true",
2730 "",
2731 performRestart ? "true" : "false"
2732 );
2733 server.setContentLength(strlen(buf));
2734 server.send(200, MIME_JSON, buf);
2735 }
2736}
2737
2738void AmsWebServer::redirectToMain() {
2739 String context;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected