NervesGateSDK.CAN (nerves_gate_sdk v0.1.0)

Copy Markdown

CAN frames and process-owned receive subscriptions. No interface configuration.

Summary

Functions

Receives Events.Event messages with topic {:can, interface} and a Frame value.

Functions

interfaces()

@spec interfaces() :: {:ok, [NervesGateSDK.CAN.Interface.t()]} | {:error, term()}

send(interface, frame)

@spec send(String.t(), NervesGateSDK.CAN.Frame.t()) :: :ok | {:error, term()}

subscribe(interface)

Receives Events.Event messages with topic {:can, interface} and a Frame value.

unsubscribe(interface)