Skip to content
Open
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions src/MicroOcpp/Model/ConnectorBase/Connector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1184,6 +1184,7 @@ std::unique_ptr<Request> Connector::fetchFrontRequest() {
transactionFront->commit();

auto startTx = makeRequest(new Ocpp16::StartTransaction(model, transactionFront));
startTx->setTimeout((unsigned long)std::max(1, transactionMessageRetryIntervalInt->getInt()) * 1000UL);
startTx->setOnReceiveConfListener([this] (JsonObject response) {
//fetch authorization status from StartTransaction.conf() for user notification

Expand Down Expand Up @@ -1253,6 +1254,7 @@ std::unique_ptr<Request> Connector::fetchFrontRequest() {
} else {
stopTx = makeRequest(new Ocpp16::StopTransaction(model, transactionFront));
}
stopTx->setTimeout((unsigned long)std::max(1, transactionMessageRetryIntervalInt->getInt()) * 1000UL);
auto transactionFront_capture = transactionFront;
stopTx->setOnAbortListener([this, transactionFront_capture] () {
//shortcut to the attemptNr check above. Relevant if other operations block the queue while this StopTx is timing out
Expand Down
1 change: 1 addition & 0 deletions src/MicroOcpp/Model/Metering/MeteringConnector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,7 @@ std::unique_ptr<Request> MeteringConnector::fetchFrontRequest() {
}

auto meterValues = makeRequest(new MeterValues(model, meterDataFront.get(), connectorId, tx));
meterValues->setTimeout((unsigned long)std::max(1, transactionMessageRetryIntervalInt->getInt()) * 1000UL);
meterValues->setOnReceiveConfListener([this] (JsonObject) {
//operation success
MO_DBG_DEBUG("drop MV front");
Expand Down
Loading