WiThrottle interface
$object.withrottleinterface:description$
Properties
id
Unique object identifier. Each object in Traintastic has a globally unique id that can be used in scripts (see world.get_object).
input_channels
$object.interface.input_channels:description$
name
Interface name
online
true if interface is online, false otherwise. Read status for more information.
output_channels
Supported output channels, a table containing output channel values.
status
Interface status object.
Methods
get_input([channel,] address)
$object.interface.get_input:description$
Parameters:
-
channel
$object.interface.get_input.parameter.channel:description$ -
address
$object.interface.get_input.parameter.address:description$
Return values
$object.interface.get_input:return_values$
get_output(channel, address)
Get an output object.
Parameters:
-
channel
Output channel, a Output channel value. -
address
Output address, valid range depends onchannel.
Return values
Single output, Pair output or Aspect output object depending on channel or nil if channel/address combination is invalid.
Events
on_changed
$object.withrottleinterface.on_changed:description$
Handler signature
function (value, object, name, user_data)
Arguments
-
value- $object.object.on_changed.parameter.value:description$ -
object- $object.object.on_changed.parameter.object:description$ -
name- $object.object.on_changed.parameter.name:description$ -
user_data- optional user-provided value (see Events).