Skip to content

Commit 7c69398

Browse files
committed
* Renamed all occurances of v201 to v2 and V201 to V2
* Added clarifications of directory structure in getting started guide Signed-off-by: Piet Gömpel <pietgoempel@gmail.com>
1 parent 4dc12f2 commit 7c69398

File tree

270 files changed

+2055
-2061
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

270 files changed

+2055
-2061
lines changed

CMakeLists.txt

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ option(OCPP_INSTALL "Install the library (shared data might be installed anyway)
1919
option(LIBOCPP_ENABLE_DEPRECATED_WEBSOCKETPP "Websocket++ has been removed from the project" OFF)
2020

2121
option(LIBOCPP_ENABLE_V16 "Enable OCPP 1.6 in the ocpp library" ON)
22-
option(LIBOCPP_ENABLE_V201 "Enable OCPP 2.0.1 in the ocpp library" ON)
22+
option(LIBOCPP_ENABLE_V2 "Enable OCPP 2.0.1 and OCPP2.1 in the ocpp library" ON)
2323

24-
if((NOT LIBOCPP_ENABLE_V16) AND (NOT LIBOCPP_ENABLE_V201))
25-
message(FATAL_ERROR "At least one of LIBOCPP_ENABLE_V16 and LIBOCPP_ENABLE_V201 needs to be ON")
24+
if((NOT LIBOCPP_ENABLE_V16) AND (NOT LIBOCPP_ENABLE_V2))
25+
message(FATAL_ERROR "At least one of LIBOCPP_ENABLE_V16 and LIBOCPP_ENABLE_V2 needs to be ON")
2626
endif()
2727

2828
if(LIBOCPP_ENABLE_DEPRECATED_WEBSOCKETPP)
@@ -59,7 +59,7 @@ endif()
5959

6060
# config and auxillary files
6161
add_subdirectory(config/v16)
62-
add_subdirectory(config/v201)
62+
add_subdirectory(config/v2)
6363

6464
# library code
6565
add_subdirectory(lib)

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ The following table shows the known CSMS with which this library was tested.
103103
| O. DisplayMessage | ✅ yes |
104104
| P. DataTransfer | ✅ yes |
105105

106-
The development of OCPP2.0.1 is in progress. Check the [detailed current implementation status.](doc/v201/ocpp_201_status.md).
106+
The development of OCPP2.0.1 is in progress. Check the [detailed current implementation status.](doc/v2/ocpp_201_status.md).
107107

108108
| Whitepapers & Application Notes | Supported |
109109
| ----------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- |

config/v2/CMakeLists.txt

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ collect_migration_files(
99
INSTALL_DESTINATION ${CMAKE_INSTALL_DATADIR}/everest/modules/OCPP201/core_migrations
1010
)
1111

12-
set(MIGRATION_FILE_VERSION_V201 ${TARGET_MIGRATION_FILE_VERSION} PARENT_SCOPE)
12+
set(MIGRATION_FILE_VERSION_V2 ${TARGET_MIGRATION_FILE_VERSION} PARENT_SCOPE)
1313

1414
collect_migration_files(
1515
LOCATION ${MIGRATION_FILES_DEVICE_MODEL_LOCATION}
1616
INSTALL_DESTINATION ${CMAKE_INSTALL_DATADIR}/everest/modules/OCPP201/device_model_migrations
1717
)
1818

19-
set(MIGRATION_DEVICE_MODEL_FILE_VERSION_V201 ${TARGET_MIGRATION_FILE_VERSION} PARENT_SCOPE)
20-
set(MIGRATION_FILES_SOURCE_DIR_V201 ${MIGRATION_FILES_LOCATION} PARENT_SCOPE)
21-
set(MIGRATION_FILES_DEVICE_MODEL_SOURCE_DIR_V201 ${MIGRATION_FILES_DEVICE_MODEL_LOCATION} PARENT_SCOPE)
19+
set(MIGRATION_DEVICE_MODEL_FILE_VERSION_V2 ${TARGET_MIGRATION_FILE_VERSION} PARENT_SCOPE)
20+
set(MIGRATION_FILES_SOURCE_DIR_V2 ${MIGRATION_FILES_LOCATION} PARENT_SCOPE)
21+
set(MIGRATION_FILES_DEVICE_MODEL_SOURCE_DIR_V2 ${MIGRATION_FILES_DEVICE_MODEL_LOCATION} PARENT_SCOPE)
2222

23-
option(LIBOCPP_INSTALL_DEVICE_MODEL_DATABASE "Install device model database for OCPP201" ON)
23+
option(LIBOCPP_INSTALL_DEVICE_MODEL_DATABASE "Install device model database for OCPP2.0.1 and OCPP2.1" ON)
2424

2525
list(APPEND CONFIGS
2626
../logging.ini
@@ -38,7 +38,7 @@ if (LIBOCPP_INSTALL_DEVICE_MODEL_DATABASE)
3838
endif()
3939

4040

41-
message(STATUS "Using ocpp v201 component config file path: ${LIBOCPP_COMPONENT_CONFIG_PATH}")
41+
message(STATUS "Using ocpp v2 component config file path: ${LIBOCPP_COMPONENT_CONFIG_PATH}")
4242

4343
install(DIRECTORY ${LIBOCPP_COMPONENT_CONFIG_PATH} DESTINATION ${CMAKE_INSTALL_DATADIR}/everest/modules/OCPP201)
4444
endif()

doc/common/getting_started.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,22 @@ make -j$(nproc) install
4242

4343
Run any required tests from build/tests.
4444

45+
## Clarifications for directory structures, namespaces and OCPP versions
46+
47+
This repository contains multiple subdirectories and namespaces named v16, v2 and v21.
48+
49+
* The v16 directories contain files for configuring and implementing OCPP 1.6.
50+
* The v2 directories include files for both OCPP2.0.1 and OCPP2.1, as OCPP 2.1
51+
is fully backward compatible with OCPP 2.0.1.
52+
* The v21 directories include files only for OCPP2.1.
53+
4554
## Get Started with OCPP1.6
4655

4756
Please see the [Getting Started documentation for OCPP1.6](../v16/getting_started.md).
4857

4958
## Get Started with OCPP2.0.1
5059

51-
Please see the [Getting Started documentation for OCPP2.0.1](../v201/getting_started.md).
60+
Please see the [Getting Started documentation for OCPP2.0.1](../v2/getting_started.md).
5261

5362
## Building the doxygen documentation
5463

@@ -60,4 +69,4 @@ Please see the [Getting Started documentation for OCPP2.0.1](../v201/getting_sta
6069
You will find the generated doxygen documentation at:
6170
`build/dist/docs/html/index.html`
6271

63-
The main reference for the integration of libocpp for OCPP1.6 is the ocpp::v16::ChargePoint class defined in `v16/charge_point.hpp` , for OCPP2.0.1 that is the ocpp::v201::ChargePoint class defined in `v201/charge_point.hpp` .
72+
The main reference for the integration of libocpp for OCPP1.6 is the ocpp::v16::ChargePoint class defined in `v16/charge_point.hpp` , for OCPP2.0.1 and OCPP2.1 that is the ocpp::v2::ChargePoint class defined in `v2/charge_point.hpp` .

doc/message_dispatching.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -15,46 +15,46 @@ class v16_MessageDispatcher {
1515
- RegistrationStatus& registration_status
1616
}
1717
18-
class v201_MessageDispatcher {
18+
class v2_MessageDispatcher {
1919
- MessageQueue& message_queue
2020
- DeviceModel& device_model
2121
- ConnectivityManager& connectivity_manager
2222
- RegistrationStatusEnum& registration_status
2323
}
2424
25-
class v201_MessageHandlerInterface {
26-
+handle_message(EnhancedMessage~v201_MessageType~ message)
25+
class v2_MessageHandlerInterface {
26+
+handle_message(EnhancedMessage~v2_MessageType~ message)
2727
}
2828
2929
class v16_MessageHandlerInterface {
3030
+handle_message(EnhancedMessage~v16_MessageType~ message)
3131
}
3232
33-
class v201_DataTransferInterface {
33+
class v2_DataTransferInterface {
3434
+data_transfer_req(request: DataTransferRequest): std::optional~DataTransferResponse~
3535
+handle_data_transfer_req(call: Call~DataTransferRequest~)
3636
}
3737
38-
class v201_DataTransfer {
38+
class v2_DataTransfer {
3939
-MessageDispatcherInterface &message_dispatcher
4040
-std::optional~function~ data_transfer_callback
4141
}
4242
43-
class v201_ChargePoint {
43+
class v2_ChargePoint {
4444
std::unique_ptr~MessageDispatcherInterface~ message_dispatcher
45-
std::unique_ptr~v201_DataTransferInterface~ data_transfer
45+
std::unique_ptr~v2_DataTransferInterface~ data_transfer
4646
}
4747
4848
class v16_ChargePoint {
4949
std::unique_ptr~MessageDispatcherInterface~ message_dispatcher
5050
}
5151
5252
MessageDispatcherInterface <|-- v16_MessageDispatcher
53-
MessageDispatcherInterface <|-- v201_MessageDispatcher
54-
v201_DataTransferInterface <|-- v201_DataTransfer
55-
v201_MessageHandlerInterface <|-- v201_DataTransferInterface
56-
MessageDispatcherInterface *-- v201_DataTransfer
57-
MessageDispatcherInterface *-- v201_ChargePoint
58-
v201_DataTransferInterface *-- v201_ChargePoint
53+
MessageDispatcherInterface <|-- v2_MessageDispatcher
54+
v2_DataTransferInterface <|-- v2_DataTransfer
55+
v2_MessageHandlerInterface <|-- v2_DataTransferInterface
56+
MessageDispatcherInterface *-- v2_DataTransfer
57+
MessageDispatcherInterface *-- v2_ChargePoint
58+
v2_DataTransferInterface *-- v2_ChargePoint
5959
MessageDispatcherInterface *-- v16_ChargePoint
6060
```

doc/networkconnectivity/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ be activated before it is possible to connect to this interface. To do this, you
1414

1515
In the implementation of this callback, you have to create a promise and return the future to the promise:
1616
```cpp
17-
std::promise<ocpp::v201::ConfigNetworkResult> promise();
18-
std::future<ocpp::v201::ConfigNetworkResult> future = promise.get_future();
17+
std::promise<ocpp::v2::ConfigNetworkResult> promise();
18+
std::future<ocpp::v2::ConfigNetworkResult> future = promise.get_future();
1919
return future;
2020
```
2121

doc/v2/getting_started.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ Libocpp needs registered **callbacks** in order to execute control commands defi
1010

1111
The implementation must call **event handlers** of libocpp so that the library can track the state of the charging station and trigger OCPP messages accordingly (e.g. MeterValuesRequest , StatusNotificationRequest)
1212

13-
Your reference within libocpp to interact is a single instance to the class ocpp::v201::ChargePoint defined in `v201/charge_point.hpp` for OCPP 2.0.1.
13+
Your reference within libocpp to interact is a single instance to the class ocpp::v2::ChargePoint defined in `v2/charge_point.hpp` for OCPP 2.0.1.

doc/v2/ocpp_201_device_model_initialization.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ to true.
99
## Database, component config and config file paths
1010

1111
Along with the 'initialize_device_model' flag, a few paths must be given to the constructor:
12-
- The path of the device model migration files (normally `resources/v201/device_model_migration_files`).
12+
- The path of the device model migration files (normally `resources/v2/device_model_migration_files`).
1313
- The path of the device model database.
1414
- The path of the directory with the device model config. There should be two directories in it: 'standardized' and
1515
'custom', both containing device model config.

include/ocpp/common/evse_security.hpp

+24-24
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
#include <string>
1010

1111
#include <ocpp/common/types.hpp>
12-
#include <ocpp/v201/ocpp_types.hpp>
12+
#include <ocpp/v2/ocpp_types.hpp>
1313

1414
namespace ocpp {
1515

@@ -125,29 +125,29 @@ namespace evse_security_conversions {
125125

126126
/** Conversions for Plug&Charge Data Transfer **/
127127

128-
ocpp::v201::GetCertificateIdUseEnum to_ocpp_v201(ocpp::CertificateType other);
129-
ocpp::v201::InstallCertificateUseEnum to_ocpp_v201(ocpp::CaCertificateType other);
130-
ocpp::v201::CertificateSigningUseEnum to_ocpp_v201(ocpp::CertificateSigningUseEnum other);
131-
ocpp::v201::HashAlgorithmEnum to_ocpp_v201(ocpp::HashAlgorithmEnumType other);
132-
ocpp::v201::InstallCertificateStatusEnum to_ocpp_v201(ocpp::InstallCertificateResult other);
133-
ocpp::v201::DeleteCertificateStatusEnum to_ocpp_v201(ocpp::DeleteCertificateResult other);
134-
135-
ocpp::v201::CertificateHashDataType to_ocpp_v201(ocpp::CertificateHashDataType other);
136-
ocpp::v201::CertificateHashDataChain to_ocpp_v201(ocpp::CertificateHashDataChain other);
137-
ocpp::v201::OCSPRequestData to_ocpp_v201(ocpp::OCSPRequestData other);
138-
std::vector<ocpp::v201::OCSPRequestData> to_ocpp_v201(const std::vector<ocpp::OCSPRequestData>& ocsp_request_data);
139-
140-
ocpp::CertificateType from_ocpp_v201(ocpp::v201::GetCertificateIdUseEnum other);
141-
std::vector<ocpp::CertificateType> from_ocpp_v201(const std::vector<ocpp::v201::GetCertificateIdUseEnum>& other);
142-
ocpp::CaCertificateType from_ocpp_v201(ocpp::v201::InstallCertificateUseEnum other);
143-
ocpp::CertificateSigningUseEnum from_ocpp_v201(ocpp::v201::CertificateSigningUseEnum other);
144-
ocpp::HashAlgorithmEnumType from_ocpp_v201(ocpp::v201::HashAlgorithmEnum other);
145-
ocpp::InstallCertificateResult from_ocpp_v201(ocpp::v201::InstallCertificateStatusEnum other);
146-
ocpp::DeleteCertificateResult from_ocpp_v201(ocpp::v201::DeleteCertificateStatusEnum other);
147-
148-
ocpp::CertificateHashDataType from_ocpp_v201(ocpp::v201::CertificateHashDataType other);
149-
ocpp::CertificateHashDataChain from_ocpp_v201(ocpp::v201::CertificateHashDataChain other);
150-
ocpp::OCSPRequestData from_ocpp_v201(ocpp::v201::OCSPRequestData other);
128+
ocpp::v2::GetCertificateIdUseEnum to_ocpp_v2(ocpp::CertificateType other);
129+
ocpp::v2::InstallCertificateUseEnum to_ocpp_v2(ocpp::CaCertificateType other);
130+
ocpp::v2::CertificateSigningUseEnum to_ocpp_v2(ocpp::CertificateSigningUseEnum other);
131+
ocpp::v2::HashAlgorithmEnum to_ocpp_v2(ocpp::HashAlgorithmEnumType other);
132+
ocpp::v2::InstallCertificateStatusEnum to_ocpp_v2(ocpp::InstallCertificateResult other);
133+
ocpp::v2::DeleteCertificateStatusEnum to_ocpp_v2(ocpp::DeleteCertificateResult other);
134+
135+
ocpp::v2::CertificateHashDataType to_ocpp_v2(ocpp::CertificateHashDataType other);
136+
ocpp::v2::CertificateHashDataChain to_ocpp_v2(ocpp::CertificateHashDataChain other);
137+
ocpp::v2::OCSPRequestData to_ocpp_v2(ocpp::OCSPRequestData other);
138+
std::vector<ocpp::v2::OCSPRequestData> to_ocpp_v2(const std::vector<ocpp::OCSPRequestData>& ocsp_request_data);
139+
140+
ocpp::CertificateType from_ocpp_v2(ocpp::v2::GetCertificateIdUseEnum other);
141+
std::vector<ocpp::CertificateType> from_ocpp_v2(const std::vector<ocpp::v2::GetCertificateIdUseEnum>& other);
142+
ocpp::CaCertificateType from_ocpp_v2(ocpp::v2::InstallCertificateUseEnum other);
143+
ocpp::CertificateSigningUseEnum from_ocpp_v2(ocpp::v2::CertificateSigningUseEnum other);
144+
ocpp::HashAlgorithmEnumType from_ocpp_v2(ocpp::v2::HashAlgorithmEnum other);
145+
ocpp::InstallCertificateResult from_ocpp_v2(ocpp::v2::InstallCertificateStatusEnum other);
146+
ocpp::DeleteCertificateResult from_ocpp_v2(ocpp::v2::DeleteCertificateStatusEnum other);
147+
148+
ocpp::CertificateHashDataType from_ocpp_v2(ocpp::v2::CertificateHashDataType other);
149+
ocpp::CertificateHashDataChain from_ocpp_v2(ocpp::v2::CertificateHashDataChain other);
150+
ocpp::OCSPRequestData from_ocpp_v2(ocpp::v2::OCSPRequestData other);
151151

152152
} // namespace evse_security_conversions
153153

include/ocpp/common/message_queue.hpp

+7-7
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
#include <ocpp/common/types.hpp>
2020
#include <ocpp/v16/messages/StopTransaction.hpp>
2121
#include <ocpp/v16/types.hpp>
22-
#include <ocpp/v201/messages/TransactionEvent.hpp>
23-
#include <ocpp/v201/types.hpp>
22+
#include <ocpp/v2/messages/TransactionEvent.hpp>
23+
#include <ocpp/v2/types.hpp>
2424

2525
namespace ocpp {
2626

@@ -116,7 +116,7 @@ bool is_transaction_message(const ocpp::v16::MessageType message_type);
116116
/// \brief Indicates if the given \p message_type is a transaction message type
117117
/// \param message_type
118118
/// \return true if MessageType is TransactionEvent or SecurityEventNotification
119-
bool is_transaction_message(const ocpp::v201::MessageType message_type);
119+
bool is_transaction_message(const ocpp::v2::MessageType message_type);
120120

121121
/// \brief Indicates if the given \p message_type is a StartTransaction message
122122
/// \param message_type
@@ -126,7 +126,7 @@ bool is_start_transaction_message(const ocpp::v16::MessageType message_type);
126126
/// \brief Indicates if the given \p message_type is a StartTransaction message.
127127
/// \param message_type
128128
/// \return Always return false
129-
bool is_start_transaction_message(const ocpp::v201::MessageType message_type);
129+
bool is_start_transaction_message(const ocpp::v2::MessageType message_type);
130130

131131
/// \brief Indicates if the given \p control_message is a start transaction message
132132
template <typename M> auto is_start_transaction_message(const ControlMessage<M>& control_message) {
@@ -145,7 +145,7 @@ bool is_boot_notification_message(const ocpp::v16::MessageType message_type);
145145
/// \brief Indicates if the given \p message_type is a BootNotification
146146
/// \param message_type
147147
/// \return true if MessageType is BootNotification
148-
bool is_boot_notification_message(const ocpp::v201::MessageType message_type);
148+
bool is_boot_notification_message(const ocpp::v2::MessageType message_type);
149149

150150
template <typename M>
151151
bool allowed_to_send_message(const ControlMessage<M>& message, const DateTime& time,
@@ -969,8 +969,8 @@ template <typename M> class MessageQueue {
969969
bool contains_transaction_messages(const CiString<36> transaction_id) {
970970
std::lock_guard<std::recursive_mutex> lk(this->message_mutex);
971971
for (const auto control_message : this->transaction_message_queue) {
972-
if (control_message->messageType == v201::MessageType::TransactionEvent) {
973-
v201::TransactionEventRequest req = control_message->message.at(CALL_PAYLOAD);
972+
if (control_message->messageType == v2::MessageType::TransactionEvent) {
973+
v2::TransactionEventRequest req = control_message->message.at(CALL_PAYLOAD);
974974
if (req.transactionInfo.transactionId == transaction_id) {
975975
return true;
976976
}

include/ocpp/common/types.hpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include <ocpp/common/cistring.hpp>
2121
#include <ocpp/common/support_older_cpp_versions.hpp>
2222
#include <ocpp/v16/ocpp_enums.hpp>
23-
#include <ocpp/v201/ocpp_enums.hpp>
23+
#include <ocpp/v2/ocpp_enums.hpp>
2424

2525
using json = nlohmann::json;
2626

@@ -356,7 +356,7 @@ struct Measurement {
356356
struct DisplayMessageContent {
357357
std::string message;
358358
std::optional<std::string> language;
359-
std::optional<v201::MessageFormatEnum> message_format;
359+
std::optional<v2::MessageFormatEnum> message_format;
360360

361361
friend void from_json(const json& j, DisplayMessageContent& m);
362362
friend void to_json(json& j, const DisplayMessageContent& m);
@@ -373,8 +373,8 @@ enum class IdentifierType {
373373

374374
struct DisplayMessage {
375375
std::optional<int32_t> id;
376-
std::optional<v201::MessagePriorityEnum> priority;
377-
std::optional<v201::MessageStateEnum> state;
376+
std::optional<v2::MessagePriorityEnum> priority;
377+
std::optional<v2::MessageStateEnum> state;
378378
std::optional<DateTime> timestamp_from;
379379
std::optional<DateTime> timestamp_to;
380380
std::optional<std::string> identifier_id;

include/ocpp/v16/charge_point.hpp

+14-14
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222

2323
// for OCPP1.6 PnC
2424
#include "ocpp/v16/messages/ChangeAvailability.hpp"
25-
#include <ocpp/v201/messages/Authorize.hpp>
26-
#include <ocpp/v201/messages/CertificateSigned.hpp>
27-
#include <ocpp/v201/messages/DeleteCertificate.hpp>
28-
#include <ocpp/v201/messages/Get15118EVCertificate.hpp>
29-
#include <ocpp/v201/messages/GetCertificateStatus.hpp>
30-
#include <ocpp/v201/messages/GetInstalledCertificateIds.hpp>
31-
#include <ocpp/v201/messages/InstallCertificate.hpp>
32-
#include <ocpp/v201/messages/SignCertificate.hpp>
33-
#include <ocpp/v201/messages/TriggerMessage.hpp>
25+
#include <ocpp/v2/messages/Authorize.hpp>
26+
#include <ocpp/v2/messages/CertificateSigned.hpp>
27+
#include <ocpp/v2/messages/DeleteCertificate.hpp>
28+
#include <ocpp/v2/messages/Get15118EVCertificate.hpp>
29+
#include <ocpp/v2/messages/GetCertificateStatus.hpp>
30+
#include <ocpp/v2/messages/GetInstalledCertificateIds.hpp>
31+
#include <ocpp/v2/messages/InstallCertificate.hpp>
32+
#include <ocpp/v2/messages/SignCertificate.hpp>
33+
#include <ocpp/v2/messages/TriggerMessage.hpp>
3434

3535
namespace ocpp {
3636
namespace v16 {
@@ -142,9 +142,9 @@ class ChargePoint {
142142
/// \param certificate contract certificate that the EVCC provides
143143
/// \param iso15118_certificate_hash_data
144144
/// \return
145-
ocpp::v201::AuthorizeResponse data_transfer_pnc_authorize(
145+
ocpp::v2::AuthorizeResponse data_transfer_pnc_authorize(
146146
const std::string& emaid, const std::optional<std::string>& certificate,
147-
const std::optional<std::vector<ocpp::v201::OCSPRequestData>>& iso15118_certificate_hash_data);
147+
const std::optional<std::vector<ocpp::v2::OCSPRequestData>>& iso15118_certificate_hash_data);
148148

149149
/// \brief Uses data transfer mechanism to get 15118 ev certificate from CSMS. This function can be called when the
150150
/// EVCC requests the update or installation of a contract certificate as part of the ISO15118
@@ -155,7 +155,7 @@ class ChargePoint {
155155
/// \param certificate_action Install or Update
156156
void data_transfer_pnc_get_15118_ev_certificate(const int32_t connector_id, const std::string& exi_request,
157157
const std::string& iso15118_schema_version,
158-
const ocpp::v201::CertificateActionEnum& certificate_action);
158+
const ocpp::v2::CertificateActionEnum& certificate_action);
159159

160160
/// \brief Allows the exchange of arbitrary \p data identified by a \p vendorId and \p messageId with a central
161161
/// system \returns the DataTransferResponse
@@ -514,8 +514,8 @@ class ChargePoint {
514514
/// \param callback
515515
void register_get_15118_ev_certificate_response_callback(
516516
const std::function<void(const int32_t connector,
517-
const ocpp::v201::Get15118EVCertificateResponse& certificate_response,
518-
const ocpp::v201::CertificateActionEnum& certificate_action)>& callback);
517+
const ocpp::v2::Get15118EVCertificateResponse& certificate_response,
518+
const ocpp::v2::CertificateActionEnum& certificate_action)>& callback);
519519

520520
/// \brief registers a \p callback function that is called when a StartTransaction.req message is sent by the
521521
/// chargepoint

0 commit comments

Comments
 (0)