MCPcopy Create free account
hub / github.com/ClassicOldSong/Apollo / resetDisplayDevicePersistence

Function resetDisplayDevicePersistence

src/confighttp.cpp:1308–1318  ·  view source on GitHub ↗

* @brief Reset the display device persistence. * @param response The HTTP response object. * @param request The HTTP request object. * * @api_examples{/api/reset-display-device-persistence| POST| null} */

Source from the content-addressed store, hash-verified

1306 * @api_examples{/api/reset-display-device-persistence| POST| null}
1307 */
1308 void resetDisplayDevicePersistence(resp_https_t response, req_https_t request) {
1309 if (!validateContentType(response, request, "application/json") || !authenticate(response, request)) {
1310 return;
1311 }
1312
1313 print_req(request);
1314
1315 nlohmann::json output_tree;
1316 output_tree["status"] = display_device::reset_persistence();
1317 send_response(response, output_tree);
1318 }
1319
1320 /**
1321 * @brief Restart Apollo.

Callers

nothing calls this directly

Calls 5

validateContentTypeFunction · 0.85
authenticateFunction · 0.85
reset_persistenceFunction · 0.85
send_responseFunction · 0.85
print_reqFunction · 0.70

Tested by

no test coverage detected