Packages

Livebook tools for EtherCAT discovery, runtime inspection, control, and diagnostics.

Current section

Files

Jump to
kino_ethercat lib kino_ethercat runtime master.ex
Raw

lib/kino_ethercat/runtime/master.ex

defmodule KinoEtherCAT.Runtime.Master do
@moduledoc false
use Kino.JS, assets_path: "lib/assets/runtime_panel/build"
use Kino.JS.Live
alias KinoEtherCAT.Runtime.Live
@spec new(%EtherCAT.Master{}) :: Kino.JS.Live.t()
def new(resource), do: Kino.JS.Live.new(__MODULE__, resource)
@impl true
def init(resource, ctx), do: Live.init(resource, ctx)
@impl true
def handle_connect(ctx), do: Live.handle_connect(ctx)
@impl true
def handle_event(event, params, ctx), do: Live.handle_event(event, params, ctx)
end