Feature: Add Tesla BMS ECU reset, basic UDS response logging

This commit is contained in:
James Brookes 2025-04-06 19:40:57 +01:00
parent 9a8c1f1f77
commit a5c99488dd
4 changed files with 104 additions and 6 deletions

View file

@ -579,6 +579,15 @@ void init_webserver() {
request->send(200, "text/plain", "Updated successfully");
});
// Route for resetting BMS ECU on Tesla
server.on("/bmsECUReset", HTTP_GET, [](AsyncWebServerRequest* request) {
if (WEBSERVER_AUTH_REQUIRED && !request->authenticate(http_username, http_password)) {
return request->requestAuthentication();
}
datalayer.battery.settings.user_requests_bms_ecu_reset = true;
request->send(200, "text/plain", "Updated successfully");
});
// Route for resetting SOH on Nissan LEAF batteries
server.on("/resetSOH", HTTP_GET, [](AsyncWebServerRequest* request) {
if (WEBSERVER_AUTH_REQUIRED && !request->authenticate(http_username, http_password)) {