Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6160680

Browse files
committedJan 29, 2024
[wip] Add a variable to configure the timeout duration
Signed-off-by: Soumya Subramanya <s.subramanya@alfen.com>
1 parent ab4b5d0 commit 6160680

File tree

5 files changed

+33
-1
lines changed

5 files changed

+33
-1
lines changed
 

‎config/v201/component_schemas/standardized/InternalCtrlr.json

+18
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,24 @@
537537
"description": "List of criteria supported for a get custom report. Enabled,Active,Problem,Available",
538538
"default": "Enabled,Active,Problem,Available",
539539
"type": "string"
540+
},
541+
"NetworkConfigTimeout": {
542+
"variable_name": "NetworkConfigTimeout",
543+
"characteristics": {
544+
"supportsMonitoring": true,
545+
"dataType": "integer",
546+
"minLimit": 1
547+
},
548+
"attributes": [
549+
{
550+
"type": "Actual",
551+
"mutability": "ReadWrite"
552+
}
553+
],
554+
"description": "Timeout value in seconds to wait for a response from a network configuration request",
555+
"minimum": 1,
556+
"default": "160",
557+
"type": "integer"
540558
}
541559
},
542560
"required": [

‎config/v201/config.json

+6
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,12 @@
266266
"Actual": "Enabled,Active,Available"
267267
}
268268
},
269+
"NetworkConfigTimeout": {
270+
"variable_name": "NetworkConfigTimeout",
271+
"attributes": {
272+
"Actual": "160"
273+
}
274+
},
269275
"UpdateCertificateSymlinks": {
270276
"variable_name": "UpdateCertificateSymlinks",
271277
"attributes": {

‎include/ocpp/v201/charge_point.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ struct Callbacks {
175175
const int32_t configuration_slot, const NetworkConnectionProfile& network_connection_profile)>>
176176
validate_network_profile_callback;
177177

178-
/// @brief register a \p cllback that is called when the network connection profile is to be configured.
178+
/// @brief register a \p callback that is called when the network connection profile is to be configured.
179179
std::optional<
180180
std::function<std::future<ConfigNetworkResult>(const NetworkConnectionProfile& network_connection_profile)>>
181181
configure_network_connection_profile_callback;

‎include/ocpp/v201/ctrlr_component_variables.hpp

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ extern const ComponentVariable& LogMessages;
5454
extern const RequiredComponentVariable& LogMessagesFormat;
5555
extern const ComponentVariable& SupportedChargingProfilePurposeTypes;
5656
extern const ComponentVariable& SupportedCriteria;
57+
extern const ComponentVariable& NetworkConfigTimeout;
5758
extern const ComponentVariable& MaxCompositeScheduleDuration;
5859
extern const RequiredComponentVariable& NumberOfConnectors;
5960
extern const ComponentVariable& UseSslDefaultVerifyPaths;

‎lib/ocpp/v201/ctrlr_component_variables.cpp

+7
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,13 @@ const ComponentVariable& SupportedCriteria = {
158158
"SupportedCriteria",
159159
}),
160160
};
161+
const ComponentVariable& NetworkConfigTimeout = {
162+
ControllerComponents::InternalCtrlr,
163+
std::nullopt,
164+
std::optional<Variable>({
165+
"NetworkConfigTimeout",
166+
}),
167+
};
161168
const ComponentVariable& SupportedChargingProfilePurposeTypes = {
162169
ControllerComponents::InternalCtrlr,
163170
std::nullopt,

0 commit comments

Comments
 (0)
Please sign in to comment.