Menu
Contents

TraintasticDIY interface

Interface for communicating with a Traintastic DIY compatible device.

Properties

id
Object id, each object has a unique id.
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_output

get_output(channel, address)

Get an output object.

Parameters

channel
Output channel, a Output channel value.
address
Output address, valid range depends on channel.

Return values

Single output, Pair output or Aspect output object depending on channel or nil if channel/address combination is invalid.