Skip to content

Commit ad9b141

Browse files
author
Alex Zolotko
authored
Merge pull request #16 from NewMotion/handle-unlock
Handle UnlockConnectorReq if present
2 parents 1819491 + b3acc2f commit ad9b141

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/ocpp1x/remote-transaction.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ if (auth.status == AuthorizationStatus.Accepted) {
3333
}
3434

3535
waitForValidRemoteStop()
36-
36+
// handle UnlockConnectorReq if present
37+
Try(expectIncoming(unlockConnectorReq.respondingWith(UnlockConnectorRes(UnlockStatus.NotSupported))))
38+
3739
statusNotification(status = ChargePointStatus.Occupied(Some(OccupancyKind.Finishing)))
3840
stopTransaction(transactionId = transId, idTag = Some(chargeTokenId))
3941
statusNotification(status = ChargePointStatus.Available())

0 commit comments

Comments
 (0)