Quickstart
This is the fastest and simplest way to get started trying NervesHub.
Start the Project
Start a Nerves project (or use your existing one):
Add nerves_hub_link
to the deps
function:
Then run mix deps.get
.
Set up Product
Inside of your NervesHub account under the Org of your choice. Create a Product.
Then go to settings. Hit the button to "Add a Shared Secret".
Copy the Key and copy the Secret. If your browser does not seem to grab the secret when you hit "Copy Secret" you can inspect the button and steal the secret anyway.
Configuration
In config/target.exs
:
If you need WiFi find the part about :vintage_net
and "wlan0"
. Replace the blank wlan interface configuration with:
To build for a Raspberry Pi Zero:
Then deploy to SD card via mix burn
or to an existing working Nerves device via mix upload
.
Power it up and it should join your device list.
Click into it, try the Console and have some fun. For installations with more serious security and device identification needs. See the full Setup guide and how to use NervesKey.
Last updated