OcppModel.V20.Behaviours.Charger behaviour (ocpp_model v0.3.0) View Source

Behaviour of a Charger, allowing the module assuming the behaviour to be able to respond to messages send to it

Link to this section Summary

Functions

Main entrypoint, based on the action parameter, this function will call one of the callback functions

Link to this section Functions

Link to this function

handle(impl, action, payload, state)

View Source

Specs

handle(atom(), String.t(), map(), any()) ::
  {{:ok, map()}, any()} | {{:error, atom(), String.t()}, any()}

Main entrypoint, based on the action parameter, this function will call one of the callback functions

Link to this section Callbacks

Link to this callback

cancel_reservation(arg1, any)

View Source

Specs

cancel_reservation(OcppModel.V20.Messages.CancelReservationRequest.t(), any()) ::
  {{:ok, OcppModel.V20.Messages.CancelReservationResponse.t()}, any()}
  | {{:error, :cancel_reservation, String.t()}, any()}
Link to this callback

certificate_signed(arg1, any)

View Source

Specs

certificate_signed(OcppModel.V20.Messages.CertificateSignedRequest.t(), any()) ::
  {{:ok, OcppModel.V20.Messages.CertificateSignedResponse.t()}, any()}
  | {{:error, :certificate_signed, String.t()}, any()}
Link to this callback

change_availability(arg1, any)

View Source

Specs

change_availability(OcppModel.V20.Messages.ChangeAvailabilityRequest.t(), any()) ::
  {{:ok, OcppModel.V20.Messages.ChangeAvailabilityResponse.t()}, any()}
  | {{:error, :change_availability, String.t()}, any()}

Specs

clear_cache(OcppModel.V20.Messages.ClearCacheRequest.t(), any()) ::
  {{:ok, OcppModel.V20.Messages.ClearCacheResponse.t()}, any()}
  | {{:error, :clear_cache, String.t()}, any()}
Link to this callback

clear_charging_profile(arg1, any)

View Source

Specs

clear_charging_profile(
  OcppModel.V20.Messages.ClearChargingProfileRequest.t(),
  any()
) ::
  {{:ok, OcppModel.V20.Messages.ClearChargingProfileResponse.t()}, any()}
  | {{:error, :clear_charging_profile, String.t()}, any()}
Link to this callback

clear_display_message(arg1, any)

View Source

Specs

clear_display_message(
  OcppModel.V20.Messages.ClearDisplayMessageRequest.t(),
  any()
) ::
  {{:ok, OcppModel.V20.Messages.ClearDisplayMessageResponse.t()}, any()}
  | {{:error, :clear_display_message, String.t()}, any()}
Link to this callback

clear_variable_monitoring(arg1, any)

View Source

Specs

clear_variable_monitoring(
  OcppModel.V20.Messages.ClearVariableMonitoringRequest.t(),
  any()
) ::
  {{:ok, OcppModel.V20.Messages.ClearVariableMonitoringResponse.t()}, any()}
  | {{:error, :clear_variable_monitoring, String.t()}, any()}

Specs

cost_updated(OcppModel.V20.Messages.CostUpdatedRequest.t(), any()) ::
  {{:ok, OcppModel.V20.Messages.CostUpdatedResponse.t()}, any()}
  | {{:error, :cost_updated, String.t()}, any()}
Link to this callback

customer_information(arg1, any)

View Source

Specs

customer_information(
  OcppModel.V20.Messages.CustomerInformationRequest.t(),
  any()
) ::
  {{:ok, OcppModel.V20.Messages.CustomerInformationResponse.t()}, any()}
  | {{:error, :customer_information, String.t()}, any()}
Link to this callback

data_transfer(arg1, any)

View Source

Specs

data_transfer(OcppModel.V20.Messages.DataTransferRequest.t(), any()) ::
  {{:ok, OcppModel.V20.Messages.DataTransferResponse.t()}, any()}
  | {{:error, :data_transfer, String.t()}, any()}
Link to this callback

delete_certificate(arg1, any)

View Source

Specs

delete_certificate(OcppModel.V20.Messages.DeleteCertificateRequest.t(), any()) ::
  {{:ok, OcppModel.V20.Messages.DeleteCertificateResponse.t()}, any()}
  | {{:error, :delete_certificate, String.t()}, any()}
Link to this callback

get_base_report(arg1, any)

View Source

Specs

get_base_report(OcppModel.V20.Messages.GetBaseReportRequest.t(), any()) ::
  {{:ok, OcppModel.V20.Messages.GetBaseReportResponse.t()}, any()}
  | {{:error, :get_base_report, String.t()}, any()}
Link to this callback

get_charging_profiles(arg1, any)

View Source

Specs

get_charging_profiles(
  OcppModel.V20.Messages.GetChargingProfilesRequest.t(),
  any()
) ::
  {{:ok, OcppModel.V20.Messages.GetChargingProfilesResponse.t()}, any()}
  | {{:error, :get_charging_profiles, String.t()}, any()}
Link to this callback

get_composite_schedule(arg1, any)

View Source

Specs

get_composite_schedule(
  OcppModel.V20.Messages.GetCompositeScheduleRequest.t(),
  any()
) ::
  {{:ok, OcppModel.V20.Messages.GetCompositeScheduleResponse.t()}, any()}
  | {{:error, :get_composite_schedule, String.t()}, any()}
Link to this callback

get_display_messages(arg1, any)

View Source

Specs

get_display_messages(
  OcppModel.V20.Messages.GetDisplayMessagesRequest.t(),
  any()
) ::
  {{:ok, OcppModel.V20.Messages.GetDisplayMessagesResponse.t()}, any()}
  | {{:error, :get_display_messages, String.t()}, any()}
Link to this callback

get_installed_certificate_ids(arg1, any)

View Source

Specs

get_installed_certificate_ids(
  OcppModel.V20.Messages.GetInstalledCertificateIdsRequest.t(),
  any()
) ::
  {{:ok, OcppModel.V20.Messages.GetInstalledCertificateIdsResponse.t()}, any()}
Link to this callback

get_local_list_version(arg1, any)

View Source

Specs

get_local_list_version(
  OcppModel.V20.Messages.GetLocalListVersionRequest.t(),
  any()
) ::
  {{:ok, OcppModel.V20.Messages.GetLocalListVersionResponse.t()}, any()}
  | {{:error, :get_local_list_version, String.t()}, any()}

Specs

get_log(OcppModel.V20.Messages.GetLogRequest.t(), any()) ::
  {{:ok, OcppModel.V20.Messages.GetLogResponse.t()}, any()}
  | {{:error, :get_log, String.t()}, any()}
Link to this callback

get_monitoring_report(arg1, any)

View Source

Specs

get_monitoring_report(
  OcppModel.V20.Messages.GetMonitoringReportRequest.t(),
  any()
) ::
  {{:ok, OcppModel.V20.Messages.GetMonitoringReportResponse.t()}, any()}
  | {{:error, :get_monitoring_report, String.t()}, any()}

Specs

get_report(OcppModel.V20.Messages.GetReportRequest.t(), any()) ::
  {{:ok, OcppModel.V20.Messages.GetReportResponse.t()}, any()}
  | {{:error, :get_report, String.t()}, any()}
Link to this callback

get_transaction_status(arg1, any)

View Source

Specs

get_transaction_status(
  OcppModel.V20.Messages.GetTransactionStatusRequest.t(),
  any()
) ::
  {{:ok, OcppModel.V20.Messages.GetTransactionStatusResponse.t()}, any()}
  | {{:error, :get_transaction_status, String.t()}, any()}
Link to this callback

get_variables(arg1, any)

View Source

Specs

get_variables(OcppModel.V20.Messages.GetVariablesRequest.t(), any()) ::
  {{:ok, OcppModel.V20.Messages.GetVariablesResponse.t()}, any()}
  | {{:error, :get_variables, String.t()}, any()}
Link to this callback

install_certificate(arg1, any)

View Source

Specs

install_certificate(OcppModel.V20.Messages.InstallCertificateRequest.t(), any()) ::
  {{:ok, OcppModel.V20.Messages.InstallCertificateResponse.t()}, any()}
  | {{:error, :install_certificate, String.t()}, any()}
Link to this callback

request_start_transaction(arg1, any)

View Source

Specs

request_start_transaction(
  OcppModel.V20.Messages.RequestStartTransactionRequest.t(),
  any()
) ::
  {{:ok, OcppModel.V20.Messages.RequestStartTransactionResponse.t()}, any()}
  | {{:error, :request_start_transaction, String.t()}, any()}
Link to this callback

request_stop_transaction(arg1, any)

View Source

Specs

request_stop_transaction(
  OcppModel.V20.Messages.RequestStopTransactionRequest.t(),
  any()
) ::
  {{:ok, OcppModel.V20.Messages.RequestStopTransactionResponse.t()}, any()}
  | {{:error, :request_stop_transaction, String.t()}, any()}

Specs

reserve_now(OcppModel.V20.Messages.ReserveNowRequest.t(), any()) ::
  {{:ok, OcppModel.V20.Messages.ReserveNowResponse.t()}, any()}
  | {{:error, :reserve_now, String.t()}, any()}

Specs

reset(OcppModel.V20.Messages.ResetRequest.t(), any()) ::
  {{:ok, OcppModel.V20.Messages.ResetResponse.t()}, any()}
  | {{:error, :reset, String.t()}, any()}
Link to this callback

send_local_list(arg1, any)

View Source

Specs

send_local_list(OcppModel.V20.Messages.SendLocalListRequest.t(), any()) ::
  {{:ok, OcppModel.V20.Messages.SendLocalListResponse.t()}, any()}
  | {{:error, :send_local_list, String.t()}, any()}
Link to this callback

set_charging_profile(arg1, any)

View Source

Specs

set_charging_profile(
  OcppModel.V20.Messages.SetChargingProfileRequest.t(),
  any()
) ::
  {{:ok, OcppModel.V20.Messages.SetChargingProfileResponse.t()}, any()}
  | {{:error, :set_charging_profile, String.t()}, any()}
Link to this callback

set_display_message(arg1, any)

View Source

Specs

set_display_message(OcppModel.V20.Messages.SetDisplayMessageRequest.t(), any()) ::
  {{:ok, OcppModel.V20.Messages.SetDisplayMessageResponse.t()}, any()}
  | {{:error, :set_display_message, String.t()}, any()}
Link to this callback

trigger_message(arg1, any)

View Source

Specs

trigger_message(OcppModel.V20.Messages.TriggerMessageRequest.t(), any()) ::
  {{:ok, OcppModel.V20.Messages.TriggerMessageResponse.t()}, any()}
  | {{:error, :trigger_message, String.t()}, any()}
Link to this callback

unlock_connector(arg1, any)

View Source

Specs

unlock_connector(OcppModel.V20.Messages.UnlockConnectorRequest.t(), any()) ::
  {{:ok, OcppModel.V20.Messages.UnlockConnectorResponse.t()}, any()}
  | {{:error, :unlock_connector, String.t()}, any()}