Skip to content

Commit

Permalink
update MO Variables API
Browse files Browse the repository at this point in the history
  • Loading branch information
matth-x committed Nov 3, 2024
1 parent 065418c commit 7890a3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/MicroOcppMongoose
4 changes: 1 addition & 3 deletions src/evse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ void Evse::setup() {
//load some example variables for testing

if (auto varService = context->getModel().getVariableService()) {
varService->declareVariable<bool>("AuthCtrlr", "LocalAuthorizeOffline", false, MO_VARIABLE_VOLATILE);
varService->declareVariable<int>("OCPPCommCtrlr", "OfflineThreshold", false, MO_VARIABLE_VOLATILE);
varService->declareVariable<bool>("TxCtrlr", "StopTxOnInvalidId", false, MO_VARIABLE_VOLATILE);
varService->declareVariable<bool>("AuthCtrlr", "LocalAuthorizeOffline", false, MicroOcpp::Variable::Mutability::ReadOnly, false);
}
}
}
Expand Down

0 comments on commit 7890a3c

Please sign in to comment.