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

Behaviour of a Basic ChargeSystem, it has a limited set of actions

Link to this section Summary

Functions

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

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(), binary()}, any()}

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

Link to this section Callbacks

Specs

authorize(OcppModel.V20.Messages.AuthorizeRequest.t(), any()) ::
  {{:ok, OcppModel.V20.Messages.AuthorizeResponse.t()}, any()}
  | {{:error, :authorize, String.t()}, any()}
Link to this callback

boot_notification(arg1, any)

View Source

Specs

boot_notification(OcppModel.V20.Messages.BootNotificationRequest.t(), any()) ::
  {{:ok, OcppModel.V20.Messages.BootNotificationResponse.t()}, any()}
  | {{:error, :boot_notification, String.t()}, any()}

Specs

heartbeat(OcppModel.V20.Messages.HeartbeatRequest.t(), any()) ::
  {{:ok, OcppModel.V20.Messages.HeartbeatResponse.t()}, any()}
  | {{:error, :heartbeat, String.t()}, any()}
Link to this callback

status_notification(arg1, any)

View Source

Specs

status_notification(OcppModel.V20.Messages.StatusNotificationRequest.t(), any()) ::
  {{:ok, OcppModel.V20.Messages.StatusNotificationResponse.t()}, any()}
  | {{:error, :status_notification, String.t()}, any()}
Link to this callback

transaction_event(arg1, any)

View Source

Specs

transaction_event(OcppModel.V20.Messages.TransactionEventRequest.t(), any()) ::
  {{:ok, OcppModel.V20.Messages.TransactionEventResponse.t()}, any()}
  | {{:error, :transaction_event, String.t()}, any()}