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

Behaviour for a controller

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

publish_firmware(arg1, any)

View Source

Specs

publish_firmware(OcppModel.V20.Messages.PublishFirmwareRequest.t(), any()) ::
  {{:ok,
    %OcppModel.V20.Messages.PublishFirmwareResponse{
      status: term(),
      statusInfo: term()
    }}, any()}
  | {{:error, :publish_firmware, String.t()}, any()}