This repository is to host a basic tutorial for absolute beginners in Elixir and Nerves world, who want to implment an SQLite database on their embedded device.
Refer to this tutorial for learning all the nitigrities about setting a base Nerves project, in which you can ssh and push OTA updates, and setting a base sqlite database.
The main library we'll be using is this sqlite_ecto2
- Change add your network's credentials in
target.exs
export MIX_TARTGET=rpi4
mix deps.get
- To burn the firmware on SD card, insert your SD card in the computer then
mix firmware.burn
If it says cannot detect SD card: for linux use commandmix firmware.burn -d <location of SD card>
in my case it was/dev/mmcblk0
you can check your from Disks utility in Ubuntu.mix firmware.burn -d /dev/mmcblk0