LocoNet interface
Interface for communicating with a LocoNet network.
Methods
imm_packet(dcc_packet [, repeat = 2])
Request the LocoNet command station to send a DCC packet to the track (OPC_IMM_PACKET).
Use this with caution!
These messages bypass Traintastic’s normal handling. You need a solid understanding of DCC to avoid conflicts. Side effects may occur that Traintastic is not aware of or cannot manage.
Limited support
Not supported by all LocoNet command stations.
Parameters:
-
dcc_packet
Table containing up to five DCC packet bytes to send excluding checksum byte. -
repeat
Number of times to repeat the packet on the track. (1...7)
Return values
true if send to the command station, false otherwise.
send(packet)
Send LocoNet packet.
Use this with caution!
These messages bypass Traintastic’s normal handling. You need a solid understanding of LocoNet to avoid conflicts. Side effects may occur that Traintastic is not aware of or cannot manage.
Parameters:
packet
LocoNet packet bytes, excluding checksum.
Return values
true if send, false otherwise.