/nerves_node

Experimental way of automatically clustering Nerves devices with Erlang distribution.

Primary LanguageElixir

NervesNode

Experimental repository used for automatically connecting Nerves devices into an Erlang cluster using MdnsLite.

You can rip anything you want from this but don't use it for production stuff as is. It is literally the fastest thing I could get working.

Setup

Each Nerves device needs the mdns_lite bridge configuration.

This library handles this part plus making queries and using the responses.

Each device needs to be on the same network.

I added this as a path dependency but you could use a github dependency as well (in your mix.exs).

In my supervision tree:

{NervesNode, cookie: :myniceseecretcookie}

At the time of writing, this repo had a working setup for a Pi400 with an HDMI backpack.