To configure buffer size and records per stored data type:
CONFIG_APP_STORAGE_MAX_RECORDS_PER_TYPE=8 # Records per data type
CONFIG_APP_STORAGE_BATCH_BUFFER_SIZE=256 # Batch buffer size
CONFIG_APP_STORAGE_INITIAL_THRESHOLD=4 # Number of records to trigger cloud update
The storage_threshold runtime parameter controls when buffered data is sent
to the cloud. Setting it to 1 means data will be sent immediately after each sample, while higher values allow more samples to be buffered before sending.
For minimal use, include the overlay-storage-minimal.conf overlay.
Runtime control (shell commands when CONFIG_APP_STORAGE_SHELL=y):
att_storage flush # Flush stored data
att_storage clear # Clear all data
att_storage stats # Show statistics (if enabled)
See Storage Module Configurations for all options.