SGP40.VocIndex.set_states

You're seeing just the function set_states, go back to SGP40.VocIndex module for more information.

Specs

set_states(%{mean: integer(), std: integer()}) ::
  {:ok, binary()} | {:error, any()}

Set previously retrieved algorithm states to resume operation after a short interruption, skipping initial learning phase. This feature should not be used after inerruptions of more than 10 minutes. Call this once after start_link/1 and the optional set_tuning_params/1, if desired. Otherwise, the algorithm will start with initial learning phase.