Arb.reset

You're seeing just the function reset, go back to Arb module for more information.

Specs

reset(Keyword.t()) :: {:ok, [relay_id()]} | {:error, term()}

Resets the relay board.

If, under some circumstances relay board operations fail due to a USB error e.g. {:error, {:usb, "Input/Output Error"}}, this function may resolve the issue by reseting the relay board. The effect is similar to replugging the device.

Note: Previously activated relays stay active.

Options

  • :port - The USB port to be used. Only necessary if multiple relay boards are connected.

Examples

iex> Arb.reset()
:ok