Configure Your Device¶
Your device should be registered to your Factory according to the Getting Started guide.
Once registered, two services start to communicate with a Factory: aktualizr-lite
and fioconfig
.
aktualizr-lite:
This is the daemon responsible for updating the device. It checks for new updates and implements The Update Protocol (TUF) . TUF helps guarantee the integrity of platform and container updates.
fioconfig:
This is the daemon responsible for managing configuration data for your device. The content is encrypted where only the device will be able to decrypt and use it.
Both applications are configured to communicate with your Factory. That being said, an update could take up to 10 minutes to be triggered. This can be configured according to your product needs.
During this tutorial, you will configure both aktualizr-lite
and fioconfig
to check every minute.
This configuration will only apply to the device where the commands below are run.
To change the timing for the entire fleet, you will need to customize your Factory image.
On your device, create a settings file in the /etc/sota/conf.d/
folder to configure aktualizr-lite
:
Next, create a settings file in the /etc/default/
folder to configure fioconfig
:
Restart both services: