Skip to content

Commit 033b18c

Browse files
kromahnKatja Romahn
and
Katja Romahn
authored
Fix build of example v16 binary (#731)
Signed-off-by: Katja Romahn <romahn@ambibox.de> Co-authored-by: Katja Romahn <romahn@ambibox.de>
1 parent e074a6b commit 033b18c

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ target_link_libraries(charge_point
99
ocpp
1010
OpenSSL::SSL
1111
OpenSSL::Crypto
12+
SQLite::SQLite3
1213
)
1314

1415
install(TARGETS charge_point

src/charge_point.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,9 @@ int main(int argc, char* argv[]) {
247247
<< "Setting charging profiles" << std::endl;
248248
});
249249

250-
charge_point->register_transaction_updated_callback([](const int32_t connector, const int32_t transaction_id,
251-
const std::string& session_id,
252-
const IdTagInfo& id_tag_info) {
250+
charge_point->register_transaction_updated_callback([](const int32_t connector, const std::string& session_id,
251+
const int32_t transaction_id,
252+
const ocpp::v16::IdTagInfo& id_tag_info) {
253253
std::cout << "Callback: Transaction updated at connector# " << connector
254254
<< " and transaction id: " << transaction_id << std::endl;
255255
});

0 commit comments

Comments
 (0)