Skip to content

Commit 0ee858f

Browse files
authored
changed type from string to ocpp::SessionStartedReason in 1.6 build examples (#435)
Signed-off-by: pietfried <pietgoempel@gmail.com>
1 parent 496c14b commit 0ee858f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/charge_point.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ int main(int argc, char* argv[]) {
277277
} else if (command == "start_transaction") {
278278
if (!transaction_running) {
279279
uuid = boost::lexical_cast<std::string>(boost::uuids::random_generator()());
280-
charge_point->on_session_started(1, uuid, "EVConnected", std::nullopt);
280+
charge_point->on_session_started(1, uuid, ocpp::SessionStartedReason::EVConnected, std::nullopt);
281281
const auto result = charge_point->authorize_id_token(ocpp::CiString<20>(std::string("DEADBEEF")));
282282
if (result.status == ocpp::v16::AuthorizationStatus::Accepted) {
283283
charge_point->on_transaction_started(1, uuid, "DEADBEEF", 0, std::nullopt, ocpp::DateTime(),

0 commit comments

Comments
 (0)