Skip to content

getFieldInfo

getFieldInfo(source)

Return detailed information about field (source)

Parameters

Name Req Type Description
source yes string can be an index (number) (which was obtained by getFieldInfo or getSourceIndex) or a name (string) of the source.

Returns

NameTypeDescription
-tableinformation about requested field, table elements:
FieldTypeDescription
idnumberfield identifier
namestringfield name
descstringfield description
unitnumberunit identifier, see the Units reference for the full list
-nilthe requested field was not found

Availability

  • Since: 2.0.8
  • Radio support: all

Source

radio/src/lua/api_general.cpp