The following Kconfig options set in the prj.conf file control sampling and
transmission frequency:
CONFIG_APP_SAMPLING_INTERVAL_SECONDS=600 # Default: 10 minutes
CONFIG_APP_STORAGE_INITIAL_THRESHOLD=1 # Default: 1 item
The application samples and stores the sensor and location data at the interval set by the
CONFIG_APP_SAMPLING_INTERVAL_SECONDS Kconfig option. It sends the buffered data to the cloud
when the number of stored items reaches
CONFIG_APP_STORAGE_INITIAL_THRESHOLD.
You can adjust these values at runtime using the nRF Cloud device shadow. For more information, see Runtime configurations in the configuration documentation.
Longer intervals between operations and a higher storage threshold result in fewer network connections, which lowers the power consumption.
Set the PSM periodic TAU interval reasonably longer than the expected cloud upload cadence, which is the sampling interval multiplied by the storage threshold. This avoids waking the modem up too often for network maintenance.