-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move firmware update to new functional block #952
base: main
Are you sure you want to change the base?
Move firmware update to new functional block #952
Conversation
bce747f
to
98360d6
Compare
283d4b8
to
be09ba7
Compare
be09ba7
to
4d3736a
Compare
#include <ocpp/v201/message_handler.hpp> | ||
|
||
#include <ocpp/common/message_dispatcher.hpp> | ||
|
||
#include <ocpp/v201/messages/UpdateFirmware.hpp> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#include <ocpp/v201/message_handler.hpp> | |
#include <ocpp/common/message_dispatcher.hpp> | |
#include <ocpp/v201/messages/UpdateFirmware.hpp> | |
#include <ocpp/common/message_dispatcher.hpp> | |
#include <ocpp/v201/message_handler.hpp> | |
#include <ocpp/v201/messages/UpdateFirmware.hpp> |
this->device_model.get_value<std::string>(ControllerComponentVariables::FirmwareVersion)); | ||
this->security.security_event_notification_req(CiString<50>(ocpp::security_events::FIRMWARE_UPDATED), | ||
std::optional<CiString<255>>(firmwareVersionMessage), true, | ||
true); // L01.FR.31 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we need to call this->restore_all_connector_states();
here as well, otherwise evses may stay in unavailable after a successful install. Could you please double check?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well it was not there, so I am not sure if it should be there. But it seems logical to me.
Asked @RobertDeLeeuw about it, as he added the call to this function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Talked with @hikinggrass that we probably just want this to be called when a firmware update end state is reached. Added code for that.
07f505d
to
feb8b18
Compare
Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
…ity and security. Make it compile. Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
Signed-off-by: Maaike Zijderveld, iolar <git.mail@iolar.nl>
feb8b18
to
ad072e3
Compare
Describe your changes
Move firmware update functions to a functional block
Issue ticket number and link
#951
Checklist before requesting a review