ocpp/v2_1/message/notify_ev_charging_schedule

OCPP 2.1 NotifyEVChargingSchedule action.

Request/Response payload types with their OCPP-J codecs (request_to_json/request_decoder, response_to_json/ response_decoder). Transport-agnostic; the action-string mapping lives in ocpp/v2_1/dispatch.

Types

FieldTypeReqDescription
charging_scheduleChargingSchedule
custom_dataCustomData
evse_idIntThe charging schedule contained in this notification applies to an EVSE. EvseId must be > 0. (≥ 1)
power_tolerance_acceptanceBool(2.1) True when power tolerance is accepted by EV. This value is taken from EVPowerProfile.PowerToleranceAcceptance in the ISO 15118-20 PowerDeliverReq message..
selected_charging_schedule_idInt(2.1) Id of the chargingSchedule that EV selected from the provided ChargingProfile. (≥ 0)
time_baseDateTimePeriods contained in the charging profile are relative to this point in time.

Schema: NotifyEVChargingScheduleRequest

pub type Request {
  Request(
    charging_schedule: charging_schedule.ChargingSchedule,
    custom_data: option.Option(custom_data.CustomData),
    evse_id: Int,
    power_tolerance_acceptance: option.Option(Bool),
    selected_charging_schedule_id: option.Option(Int),
    time_base: timestamp.Timestamp,
  )
}

Constructors

FieldTypeReqDescription
custom_dataCustomData
statusGenericStatus
status_infoStatusInfo

Schema: NotifyEVChargingScheduleResponse

pub type Response {
  Response(
    custom_data: option.Option(custom_data.CustomData),
    status: generic_status.GenericStatus,
    status_info: option.Option(status_info.StatusInfo),
  )
}

Constructors

Values

pub fn new_request(
  charging_schedule charging_schedule: charging_schedule.ChargingSchedule,
  evse_id evse_id: Int,
  time_base time_base: timestamp.Timestamp,
) -> Request

Construct a Request from its required fields, with every optional field set to None.

pub fn new_response(
  status status: generic_status.GenericStatus,
) -> Response

Construct a Response from its required fields, with every optional field set to None.

pub fn request_decoder() -> decode.Decoder(Request)

Decode a Request from its OCPP-J JSON object, enforcing schema constraints.

pub fn request_to_json(value: Request) -> json.Json

Encode a Request to its OCPP-J JSON object.

pub fn response_decoder() -> decode.Decoder(Response)

Decode a Response from its OCPP-J JSON object, enforcing schema constraints.

pub fn response_to_json(value: Response) -> json.Json

Encode a Response to its OCPP-J JSON object.

Search Document