Skip to main content

Sensor History (history)

Store-and-forward buffering records readings while the device is offline and replays them on request. Records survive power loss. Recording is enabled with two config parameters, and the buffer is inspected and managed with the history command over the developer shell (see Firmware Setup for opening the console).

CommandArgumentDescription
config history-enabletrue / falseEnable the sensor history buffer. Default false.
config history-sensorsbitmask (uint32)Which sensors to record. Default 0 = all capability-available sensors.

Inspect and manage the buffer with the history command:

CommandDescription
history infoPrint a buffer summary.
history countNumber of stored records.
history read [N]List records, optionally only the last N.
history statsPer-sensor minimum, maximum and average.
history sensors [<name> on/off]List the recorded channels, or toggle one.
history enable <on/off>Enable or disable history recording.
history captureSample now and store one record (bench test).
history clearErase the buffer.

Stored records are replayed over LoRaWAN with the req_history downlink command (see Downlink Commands).