Add files via upload

This commit is contained in:
nmainil 2025-03-03 17:51:14 +01:00 committed by GitHub
parent 3be732f794
commit de7270b3e5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2907 additions and 2910 deletions

View file

@ -409,7 +409,6 @@ void init_webserver() {
return request->requestAuthentication();
}
datalayer_extended.VolvoPolestar.UserRequestDTCreset = true;
datalayer_extended.VolvoHybrid.UserRequestDTCreset = true;
request->send(200, "text/plain", "Updated successfully");
});
@ -419,7 +418,6 @@ void init_webserver() {
return request->requestAuthentication();
}
datalayer_extended.VolvoPolestar.UserRequestDTCreadout = true;
datalayer_extended.VolvoHybrid.UserRequestDTCreadout = true;
request->send(200, "text/plain", "Updated successfully");
});
@ -429,36 +427,35 @@ void init_webserver() {
return request->requestAuthentication();
}
datalayer_extended.VolvoPolestar.UserRequestBECMecuReset = true;
datalayer_extended.VolvoHybrid.UserRequestBECMecuReset = true;
request->send(200, "text/plain", "Updated successfully");
});
// // Route for erasing DTC on Volvo hybrid batteries
// server.on("/volvoEraseDTC", HTTP_GET, [](AsyncWebServerRequest* request) {
// if (WEBSERVER_AUTH_REQUIRED && !request->authenticate(http_username, http_password)) {
// return request->requestAuthentication();
// }
// datalayer_extended.VolvoHybrid.UserRequestDTCreset = true;
// request->send(200, "text/plain", "Updated successfully");
// });
// Route for erasing DTC on Volvo hybrid batteries
server.on("/volvoEraseDTC", HTTP_GET, [](AsyncWebServerRequest* request) {
if (WEBSERVER_AUTH_REQUIRED && !request->authenticate(http_username, http_password)) {
return request->requestAuthentication();
}
datalayer_extended.VolvoHybrid.UserRequestDTCreset = true;
request->send(200, "text/plain", "Updated successfully");
});
// // Route for reading DTC on Volvo hybrid batteries
// server.on("/volvoReadDTC", HTTP_GET, [](AsyncWebServerRequest* request) {
// if (WEBSERVER_AUTH_REQUIRED && !request->authenticate(http_username, http_password)) {
// return request->requestAuthentication();
// }
// datalayer_extended.VolvoHybrid.UserRequestDTCreadout = true;
// request->send(200, "text/plain", "Updated successfully");
// });
// Route for reading DTC on Volvo hybrid batteries
server.on("/volvoReadDTC", HTTP_GET, [](AsyncWebServerRequest* request) {
if (WEBSERVER_AUTH_REQUIRED && !request->authenticate(http_username, http_password)) {
return request->requestAuthentication();
}
datalayer_extended.VolvoHybrid.UserRequestDTCreadout = true;
request->send(200, "text/plain", "Updated successfully");
});
// // Route for performing ECU reset on Volvo hybrid batteries
// server.on("/volvoBECMecuReset", HTTP_GET, [](AsyncWebServerRequest* request) {
// if (WEBSERVER_AUTH_REQUIRED && !request->authenticate(http_username, http_password)) {
// return request->requestAuthentication();
// }
// datalayer_extended.VolvoHybrid.UserRequestBECMecuReset = true;
// request->send(200, "text/plain", "Updated successfully");
// });
// Route for performing ECU reset on Volvo hybrid batteries
server.on("/volvoBECMecuReset", HTTP_GET, [](AsyncWebServerRequest* request) {
if (WEBSERVER_AUTH_REQUIRED && !request->authenticate(http_username, http_password)) {
return request->requestAuthentication();
}
datalayer_extended.VolvoHybrid.UserRequestBECMecuReset = true;
request->send(200, "text/plain", "Updated successfully");
});
#ifdef TEST_FAKE_BATTERY
// Route for editing FakeBatteryVoltage