DCC-EX / CommandStation-EX

EX-CommandStation firmware from DCC-EX. Includes support for WiFi and a standalone WiThrottle server. A complete re-write of the original DCC++.
https://dcc-ex.github.io/
GNU General Public License v3.0
154 stars 104 forks source link

[Feature Request]: Add throttle command to request power state #269

Open peteGSX opened 1 year ago

peteGSX commented 1 year ago

Problem/idea statement

Currently there is no way for a throttle or controller to request the track power state.

The best way would be to add an additional throttle command to request the power state, and have the power state returned in a way to take into account the new district features also.

eg. <JP> to request power state return eg. <p A0|1 B0|1 C0|1 D0|1 E0|1 F0|1 G0|1 H0|1> providing the districts are still called A to H

Alternatives or workarounds

Either wait for a broadcast that might happen, or manually update track power state to receive the response.

Additional context

No response