Skip to content

Commit

Permalink
feat: add optional EVSE id for OCPP 2.0.1
Browse files Browse the repository at this point in the history
Signed-off-by: James Chapman <[email protected]>
  • Loading branch information
james-ctc committed Mar 14, 2024
1 parent f86d526 commit bfe1aa6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/OCPP/OCPP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ types::ocpp::ChargingSchedule to_ChargingSchedule(const ocpp::v16::EnhancedCharg
0,
ocpp::v16::conversions::charging_rate_unit_to_string(schedule.chargingRateUnit),
{},
std::nullopt,
schedule.duration,
std::nullopt,
schedule.minChargingRate};
Expand Down
4 changes: 4 additions & 0 deletions types/ocpp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ types:
- chargingRateUnit
- chargingSchedulePeriod
properties:
evse:
description: The OCPP 2.0.1 EVSE ID (not used in OCPP 1.6).
type: integer
minimum: 0
connector:
type: integer
minimum: 0
Expand Down

0 comments on commit bfe1aa6

Please sign in to comment.