Configuration flow

Asset Tracker Template

tags
Asset Tracker Template

The default sampling interval is set from CONFIG_APP_SAMPLING_INTERVAL_SECONDS, and the threshold is set from CONFIG_APP_STORAGE_INITIAL_THRESHOLD. When the device polls the shadow, it checks for updates to these parameters and applies them at runtime. If a parameter is not set in the shadow, the device continues using the existing value (either from Kconfig or a previous shadow update).

To trigger an immediate configuration poll, press and hold Button 1 on the device to trigger a cloud poll/send cycle that includes fetching the latest shadow delta.

The following diagrams illustrate what happens in the various scenarios where the device polls the shadow:

Shadow Desired Section Poll Flow Shadow Desired Section Poll Flow
Shadow Delta Section Poll Flow Shadow Delta Section Poll Flow
Shadow Delta Section Poll Flow - Command Execution Shadow Delta Section Poll Flow - Command Execution