Skip to content
Closed
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
13 changes: 12 additions & 1 deletion src/MicroOcpp/Model/ConnectorBase/Connector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -736,7 +736,18 @@ std::shared_ptr<Transaction> Connector::beginTransaction(const char *idTag) {
parentIdTag)) {
//reservation blocks connector
offlineBlockedResv = true; //when offline, tx is always blocked


//if Reservation doesn't have ParentID. And idTag of try to start transaction are unmatch of Reservation.
if (reservation->getParentIdTag() != nullptr)
{
if (strlen(reservation->getParentIdTag()) == 0)
{
// Reservation doesn't have ParentID.
MO_DBG_INFO("connector %u reserved - abort transaction", connectorId);
updateTxNotification(TxNotification_ReservationConflict);
return nullptr;
}
}
//if parentIdTag is known, abort this tx immediately, otherwise wait for Authorize.conf to decide
if (parentIdTag) {
//parentIdTag known
Expand Down