Skip to content

getSwitchValue

getSwitchValue(switchIndex)

Parameters

Name Req Type Description
switchIndex yes integer identifying a switch as returned by getSwitchIndex(positionName) or fields in the table returned by model.getLogicalSwitch(switch) identifying switches.

Returns

Name Type Description
value integer . The value of the switch.

Availability

  • Since: 2.6
  • Radio support: all

Source

radio/src/lua/api_general.cpp