Menu
Contents

Märklin CAN interface

Interface for communicating with a Märklin CS2/CS3.

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.