new meter

This commit is contained in:
2025-06-14 10:27:29 +01:00
parent 4892718736
commit 6f95c7ba59
228 changed files with 3178 additions and 3115 deletions

View File

@@ -250,7 +250,7 @@ void setChangeConfiguration(const char *payload, size_t len)
void OnResetExecute(bool state)
{
ESP_LOGI(TAG, "#### OnResetExecute");
esp_restart();
//esp_restart();
}
bool setOccupiedInput()
@@ -293,7 +293,7 @@ void notificationOutput(OCPP_Transaction *transaction, enum OCPP_TxNotification
// Authorization events
case Authorized:
ESP_LOGI(TAG, "<----------- Authorized ---------->");
evse_authorize();
//evse_authorize();
// is_charging = true;
break; // success
case AuthorizationRejected:
@@ -310,7 +310,7 @@ void notificationOutput(OCPP_Transaction *transaction, enum OCPP_TxNotification
break; // user took to long to plug vehicle after the authorization
case DeAuthorized:
ESP_LOGI(TAG, "DeAuthorized ---->");
evse_set_authorized(false);
//evse_set_authorized(false);
evse_set_limit_reached(2);
// ocpp_set_charging(false);
break; // server rejected StartTx
@@ -328,8 +328,8 @@ void notificationOutput(OCPP_Transaction *transaction, enum OCPP_TxNotification
case StopTx:
// is_charging = false;
ESP_LOGI(TAG, "StopTx ---->");
evse_set_authorized(false);
evse_set_limit_reached(2);
//evse_set_authorized(false);
//evse_set_limit_reached(2);
break;
};
}
@@ -531,7 +531,7 @@ void ocpp_start()
// ocpp_setOnReceiveRequest("StartTransaction", &setStartTransaction);
xTaskCreate(ocpp_task_func, "ocpp_task", 5 * 1024, NULL, 5, &ocpp_task);
xTaskCreate(ocpp_task_func, "ocpp_task", 5 * 1024, NULL, 4, &ocpp_task);
}
void ocpp_stop(void)