Storage channel

Asset Tracker Template

tags
Asset Tracker Template

The storage_chan channel is the primary zbus channel for controlling the Storage module and receiving control or status responses.

The channel carries the following input message types:

  • STORAGE_SET_THRESHOLD: Set the threshold for STORAGE_THRESHOLD_REACHED events.
  • STORAGE_FLUSH: Flush the stored data as individual messages.
  • STORAGE_BATCH_REQUEST: Request batch access to the stored data.
  • STORAGE_CLEAR: Clear all stored data.
  • STORAGE_STATS: Display the storage statistics.

The channel carries the following output message types:

  • STORAGE_THRESHOLD_REACHED: The module reached the threshold for a data type.
  • STORAGE_BATCH_AVAILABLE: The batch is ready with data.
  • STORAGE_BATCH_EMPTY: No data is available.
  • STORAGE_BATCH_BUSY: Another session is active.
  • STORAGE_BATCH_ERROR: An error occurred while accessing the data.