You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are RequiredComponentVariables in the device model, that are only required when the Component they belong to is required as well. It is easy to forget the check to see if the component is 'Available' before accessing the RequiredComponentVariable.
To make sure RequiredComponentVariable is not accessed when the Component does not exist, the code should be changed so the RequiredComponentVariables belong to a Component. If the component is not available, no variable can be requested.
Describe your solution
Rewrite DeviceModel, so the call to get a variable would then be something like: this->device_model->aligned_data_ctrlr->get_value(...)
or something similar.
Additional context
No response
The text was updated successfully, but these errors were encountered:
OCPP Version
OCPP2.0.1
Describe the problem
There are
RequiredComponentVariable
s in the device model, that are only required when the Component they belong to is required as well. It is easy to forget the check to see if the component is 'Available' before accessing the RequiredComponentVariable.To make sure RequiredComponentVariable is not accessed when the Component does not exist, the code should be changed so the RequiredComponentVariables belong to a Component. If the component is not available, no variable can be requested.
Describe your solution
Rewrite DeviceModel, so the call to get a variable would then be something like:
this->device_model->aligned_data_ctrlr->get_value(...)
or something similar.
Additional context
No response
The text was updated successfully, but these errors were encountered: