Skip to content
ezeioDocs
  1. Reference
  2. Expressions
  3. Fields and registers

Field value from log data

Return the field value from the log data, from seconds ago.

fh( fieldno, seconds )#

Return the field value from the log data, from seconds ago.

Description#

fh( fieldno, seconds )

This function returns the logged value of a given field, from seconds ago. If the field is configured for faster logging than the default 10 minutes, the fh function will attempt to fetch the data from the 'fast log' buffer.

If no data can be found, the function will return 0.

This function is available in firmware 21060101 and newer

Parameters#

fieldno Field number (1 through 90)
seconds Number of seconds back in time from where the data is fetched

Return value#

Returns the value from the log buffer.

If no data can be found, the function returns 0.

Example usage#

fh(15, 3600)

The above returns the data from field 15, 1h ago

Last updated Jun 3, 2021