Skip to content

getSwitchInfo

getSwitchInfo(sourceIndex)

Parameters

Name Req Type Description
sourceIndex yes integer identifying a value source as returned by getSourceIndex(sourceName) or the id field in the table returned by getFieldInfo.

Returns

NameTypeDescription
-tableinformation about requested field, table elements:
FieldTypeDescription
typenumberfield identifier 0 = SWITCH_NONE 1 = SWITCH_TOGGLE 2 = SWITCH_2POS 3 = SWITCH_3POS

Availability

  • Since: 2.12
  • Radio support: all

Source

radio/src/lua/api_general.cpp