Skip to content
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

Update OCPP headers #825

Merged
merged 2 commits into from
Aug 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ libevse-security:
# OCPP
libocpp:
git: https://github.com/EVerest/libocpp.git
git_tag: v0.15.0
git_tag: 398f0c5e3465d49a27524d708a8e8281461e69fa
cmake_condition: "EVEREST_DEPENDENCY_ENABLED_LIBOCPP"
# Josev
Josev:
Expand Down
5 changes: 4 additions & 1 deletion modules/OCPP/OCPP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -577,10 +577,13 @@ void OCPP::ready() {
types::system::FirmwareUpdateRequest firmware_update_request;
firmware_update_request.request_id = msg.requestId;
firmware_update_request.location = msg.firmware.location;
firmware_update_request.retrieve_timestamp.emplace(msg.firmware.retrieveDateTime.to_rfc3339());
firmware_update_request.signature.emplace(msg.firmware.signature.get());
firmware_update_request.signing_certificate.emplace(msg.firmware.signingCertificate.get());

if (msg.firmware.retrieveDateTime.has_value()) {
firmware_update_request.retrieve_timestamp.emplace(msg.firmware.retrieveDateTime.value().to_rfc3339());
}

if (msg.firmware.installDateTime.has_value()) {
firmware_update_request.install_timestamp.emplace(msg.firmware.installDateTime.value());
}
Expand Down
2 changes: 1 addition & 1 deletion modules/OCPP/auth_validator/auth_token_validatorImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "auth_token_validatorImpl.hpp"
#include <conversions.hpp>
#include <ocpp/common/types.hpp>
#include <ocpp/v16/enums.hpp>
#include <ocpp/v16/ocpp_enums.hpp>
#include <ocpp/v201/ocpp_types.hpp>

namespace module {
Expand Down
2 changes: 1 addition & 1 deletion modules/OCPP/error_mapping.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#include <unordered_map>

#include <ocpp/v16/enums.hpp>
#include <ocpp/v16/ocpp_enums.hpp>

namespace module {

Expand Down
Loading