Skip to content

Conversation

mahdidadashi65
Copy link
Contributor

No description provided.

In case of a full update this is the version number of the full list. In case of a differential update it is the version number of the
list after the update has been applied. SHALL NOT be -1 or 0 as these have a special meaning in GetLocalListVersion.conf
In the case the ChangeAvailability.req contains ConnectorId = 0, the status change applies to the Charge Point and all Connectors.
// Update status
ChargePointStatus status = ChargePointStatus::Unavailable;
if (request.type == AvailabilityType::Operative)
//In the case the ChangeAvailability.req contains ConnectorId = 0, the status change applies to the Charge Point and all Connectors.
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I didn't handled this case.

for(unsigned int i=0;i <= m_connectors.getCount();i++)
{
status = ChargePointStatus::Available;
response.status = m_events_handler.changeAvailabilityRequested(i, request.type);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For connector 0, I would have done it differently : I would have notified the user application of a change availability request on connector 0 only. If the request has been accepted, I would have change the status of all the connectors.
By doing this, I would have only 1 status for my response to the Central System reflecting the overall change availability request status of the connectors.

@c-jimenez c-jimenez self-assigned this Jan 18, 2023
@c-jimenez c-jimenez added the bug Something isn't working label Jan 18, 2023
@c-jimenez c-jimenez changed the base branch from develop to fix/local_list_change_availability January 26, 2023 07:46
@c-jimenez c-jimenez merged commit a6097a3 into c-jimenez:fix/local_list_change_availability Jan 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants