mirror of
https://github.com/dalathegreat/Battery-Emulator.git
synced 2025-10-04 02:09:30 +02:00
Add files via upload
This commit is contained in:
parent
f315321c24
commit
0548b18f2b
1 changed files with 1422 additions and 1419 deletions
|
@ -409,6 +409,7 @@ void init_webserver() {
|
||||||
return request->requestAuthentication();
|
return request->requestAuthentication();
|
||||||
}
|
}
|
||||||
datalayer_extended.VolvoPolestar.UserRequestDTCreset = true;
|
datalayer_extended.VolvoPolestar.UserRequestDTCreset = true;
|
||||||
|
datalayer_extended.VolvoHybrid.UserRequestDTCreset = true;
|
||||||
request->send(200, "text/plain", "Updated successfully");
|
request->send(200, "text/plain", "Updated successfully");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -418,6 +419,7 @@ void init_webserver() {
|
||||||
return request->requestAuthentication();
|
return request->requestAuthentication();
|
||||||
}
|
}
|
||||||
datalayer_extended.VolvoPolestar.UserRequestDTCreadout = true;
|
datalayer_extended.VolvoPolestar.UserRequestDTCreadout = true;
|
||||||
|
datalayer_extended.VolvoHybrid.UserRequestDTCreadout = true;
|
||||||
request->send(200, "text/plain", "Updated successfully");
|
request->send(200, "text/plain", "Updated successfully");
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -427,36 +429,37 @@ void init_webserver() {
|
||||||
return request->requestAuthentication();
|
return request->requestAuthentication();
|
||||||
}
|
}
|
||||||
datalayer_extended.VolvoPolestar.UserRequestBECMecuReset = true;
|
datalayer_extended.VolvoPolestar.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 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;
|
datalayer_extended.VolvoHybrid.UserRequestBECMecuReset = true;
|
||||||
request->send(200, "text/plain", "Updated successfully");
|
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 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
|
#ifdef TEST_FAKE_BATTERY
|
||||||
// Route for editing FakeBatteryVoltage
|
// Route for editing FakeBatteryVoltage
|
||||||
server.on("/updateFakeBatteryVoltage", HTTP_GET, [](AsyncWebServerRequest* request) {
|
server.on("/updateFakeBatteryVoltage", HTTP_GET, [](AsyncWebServerRequest* request) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue