-
Notifications
You must be signed in to change notification settings - Fork 11
Actions
Here you can get an overview of what actions are available in this library.
Requests current loco information from the z21. As a response z21 fires a Z21BroadcastLanXLocoInfo.
Requests z21's serial number. Also used internally to keep this program in z21's active client list. As a response z21 fires a Z21ResponseGetSerialNumber.
Sent from Z21 class' shutdown() method. Should not be used otherwise. Removes this program from z21's active client list. No response from z21.
//TODO
Reads a byte from CV. Used in POM mode (Program On Main). As a response z21 reads out the CV and fires a Z21ResponseLanXCVResult.
Writes into a CV in byte mode. Used in POM mode (Program On Main).
Reads a byte from CV. Used on programming track. As a response z21 reads out the CV and fires a Z21ResponseLanXCVResult.
Writes into a CV in byte mode. Used on programming track.
Requests z21's serial number. I don't know why do we even have this. As a response z21 fires Z21ResponseLanXGetFirmwareVersion.
Turns off track power. As a response z21 fires Z21BroadcastLanXTrackPowerOff.
Turns on track power. As a response z21 fires Z21BroadcastLanXTrackPowerOn.
Sets loco speed and direction. As a response z21 fires a Z21BroadcastLanXLocoInfo to subscribed listeners (you subscirbe by sending a Z21ActionGetLocoInfo).
Sets loco's function. As a response z21 fires a Z21BroadcastLanXLocoInfo to subscribed listeners (you subscirbe by sending a Z21ActionGetLocoInfo).