Skip to content
Merged
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
8 changes: 7 additions & 1 deletion src/chargepoint/transaction/TransactionManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ bool TransactionManager::handleMessage(const ocpp::messages::RemoteStartTransact
}
}
}
else
else if (!request.connectorId.isSet())
{
// The user application will determine which connector to use
authorized = m_events_handler.remoteStartTransactionRequested(Connectors::CONNECTOR_ID_CHARGE_POINT, request.idTag.str());
Expand All @@ -309,6 +309,12 @@ bool TransactionManager::handleMessage(const ocpp::messages::RemoteStartTransact
authorized = m_smart_charging_manager.installTxProfile(Connectors::CONNECTOR_ID_CHARGE_POINT, request.chargingProfile);
}
}
else
{
// Connector id is set but equal to CONNECTOR_ID_CHARGE_POINT
// This is not allowed by the ocpp1.6 standard
authorized = false;
}

// Response
if (authorized)
Expand Down