/vintage_net_direct

Direct network connection support for VintageNet

Primary LanguageElixirApache License 2.0Apache-2.0

vintage net logo

Hex version API docs CircleCI Coverage Status

VintageNetDirect makes it easy to connect a device to a computer over a directly connected Ethernet cable. This is a common USB setup where your computer is connected via USB to a Nerves device.

Assuming that you have a USB gadget-capable device like a Raspberry Pi Zero, 3 A+ or Beaglebone, all that you need to do is add :vintage_net_direct to your mix dependencies like this:

def deps do
  [
    {:vintage_net_direct, "~> 0.7.0", targets: @all_targets}
  ]
end

And then add the following to your :vintage_net configuration:

  config :vintage_net, [
    config: [
      {"usb0", %{type: VintageNetDirect}},
    ]
  ]