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

Behaviour of a Basic Charger, this is a charger behaviour with a limit 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

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

Link to this section Callbacks

Specs

reset(OcppModel.V20.Messages.ResetRequest.t(), any()) ::
  {{:ok, OcppModel.V20.Messages.ResetResponse.t()}, any()}
  | {{:error, :reset, 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()}