Skip to content

Commit 7890a3c

Browse files
committed
update MO Variables API
1 parent 065418c commit 7890a3c

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/evse.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ void Evse::setup() {
2828
//load some example variables for testing
2929

3030
if (auto varService = context->getModel().getVariableService()) {
31-
varService->declareVariable<bool>("AuthCtrlr", "LocalAuthorizeOffline", false, MO_VARIABLE_VOLATILE);
32-
varService->declareVariable<int>("OCPPCommCtrlr", "OfflineThreshold", false, MO_VARIABLE_VOLATILE);
33-
varService->declareVariable<bool>("TxCtrlr", "StopTxOnInvalidId", false, MO_VARIABLE_VOLATILE);
31+
varService->declareVariable<bool>("AuthCtrlr", "LocalAuthorizeOffline", false, MicroOcpp::Variable::Mutability::ReadOnly, false);
3432
}
3533
}
3634
}

0 commit comments

Comments
 (0)