model.getLogicalSwitch¶
model.getLogicalSwitch(switch)
Get Logical Switch parameters
Parameters¶
| Name | Req | Type | Description |
|---|---|---|---|
switch | yes | integer | logical switch number (use 0 for LS1) |
Returns¶
| Name | Type | Description | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- | nil | requested logical switch does not exist | ||||||||||||||||||||||||||||||
- | table | logical switch data: | ||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||
Availability¶
- Since:
2.0.0 - Radio support:
all
Source¶
radio/src/lua/api_model.cpp