State diagram

Asset Tracker Template

tags
Asset Tracker Template

The Storage module implements a state machine with the following states and transitions:

Storage module state diagram

  • RUNNING (parent): Initializes backend, handles admin commands (STORAGE_CLEAR, STORAGE_FLUSH, STORAGE_STATS, STORAGE_SET_THRESHOLD)
  • STATE_BUFFER_IDLE: Storing incoming data, waiting for commands. Transitions to STATE_BUFFER_PIPE_ACTIVE on STORAGE_BATCH_REQUEST.
  • STATE_BUFFER_PIPE_ACTIVE: Actively serving batch data through the batch interface. Transitions back to STATE_BUFFER_IDLE when batch session ends.