Skip to content

Commit

Permalink
Fix supported ocpp versions in config
Browse files Browse the repository at this point in the history
Signed-off-by: Piet Gömpel <[email protected]>
  • Loading branch information
Pietfried committed Dec 29, 2024
1 parent 8884219 commit 2db789e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions config/v201/component_config/standardized/InternalCtrlr.json
Original file line number Diff line number Diff line change
Expand Up @@ -824,17 +824,17 @@
"characteristics": {
"supportsMonitoring": true,
"dataType": "SequenceList",
"valuesList": "v201,v21"
"valuesList": "ocpp2.0.1,ocpp2.1"
},
"attributes": [
{
"type": "Actual",
"mutability": "ReadOnly",
"value": "v21,v201"
"value": "ocpp2.1,ocpp2.0.1"
}
],
"description": "List of supported OCPP versions in order of preference",
"default": "v21,v201",
"default": "ocpp2.1,ocpp2.0.1",
"type": "string"
}
},
Expand Down
2 changes: 1 addition & 1 deletion lib/ocpp/v201/connectivity_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ ConnectivityManager::get_ws_connection_options(const int32_t configuration_slot)
this->device_model.get_value<std::string>(ControllerComponentVariables::SecurityCtrlrIdentity),
network_connection_profile.securityProfile);

std::vector<OcppProtocolVersion> ocpp_versions = utils::get_ocpp_protocol_versions(
const auto ocpp_versions = utils::get_ocpp_protocol_versions(
this->device_model.get_value<std::string>(ControllerComponentVariables::SupportedOcppVersions));

WebsocketConnectionOptions connection_options{
Expand Down

0 comments on commit 2db789e

Please sign in to comment.