To configure the firmware <firmware-azure-index>
, complete the following mandatory steps:
- Create the file
firmware.conf
in the~/nrf-asset-tracker
folder for your configuration overrides. Run the following command to print the Azure IoT DPS ID scope, which your devices use during device provisioning:
# ~/nrf-asset-tracker/aws ./cli.sh info -o iotHubDpsIdScope
Add the
CONFIG_AZURE_IOT_HUB_DPS_ID_SCOPE
setting to thefirmware.conf
file, using the Azure IoT DPS ID scope value from the previous step as the value:CONFIG_AZURE_IOT_HUB_DPS_ID_SCOPE="your Azure IoT DPS ID scope"
After completing the configuration, compile the firmware either using your own development environment <firmware-azure-building>
or using Docker <firmware-azure-building-docker>
and then create the device credentials <azure-device-credentials>
.
Note
See the documentation on nRF9160: Asset Tracker v2 application for all available configuration options.