Skip to content

Commit

Permalink
Put BootNotification into message queue before starting websocket
Browse files Browse the repository at this point in the history
Signed-off-by: Kai-Uwe Hermann <[email protected]>
  • Loading branch information
hikinggrass committed Feb 1, 2024
1 parent d737654 commit 66e488c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ocpp/v201/charge_point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 66e488c

Please sign in to comment.