Astarte.Device.InterfaceProvider.init

You're seeing just the callback init, go back to Astarte.Device.InterfaceProvider module for more information.

Specs

init(args :: term()) :: {:ok, state :: state()} | {:error, reason :: term()}

Initialize the InterfaceProvider and return its state.

The state must be a map with the interface names as keys and the interfaces (as %Astarte.Core.Interface{} structs) as values.

The callback can also return {:error, reason} if its fails.