From 66e488c7ec80af0c73f9026c744199d93e7fcee4 Mon Sep 17 00:00:00 2001 From: Kai-Uwe Hermann Date: Thu, 1 Feb 2024 18:03:15 +0100 Subject: [PATCH] Put BootNotification into message queue before starting websocket Signed-off-by: Kai-Uwe Hermann --- lib/ocpp/v201/charge_point.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ocpp/v201/charge_point.cpp b/lib/ocpp/v201/charge_point.cpp index 6df700d36..73c16b0ae 100644 --- a/lib/ocpp/v201/charge_point.cpp +++ b/lib/ocpp/v201/charge_point.cpp @@ -175,8 +175,8 @@ void ChargePoint::start(BootReasonEnum bootreason) { // Trigger all initial status notifications and callbacks related to component state // Should be done before sending the BootNotification.req so that the correct states can be reported this->component_state_manager->trigger_all_effective_availability_changed_callbacks(); - this->start_websocket(); this->boot_notification_req(bootreason); + this->start_websocket(); this->ocsp_updater.start(); // FIXME(piet): Run state machine with correct initial state }