Auto TurnoutStateChanged messages
Closed this issue · 1 comments
june9666 commented
- Implement
- Test
june9666 commented
Status info about a turnout’s reference state, if it is straight or divergent.
Turnout State changed messages are sent automatically by StationControllerAPI.
"state" has the current state.
Topic: turnout/state
{"turnoutID":01,"state":"straight"}
{"turnoutID":01,"state":"divergent"}
You can request manually to get Turnout State current state.
Just send:
Topic: turnout/state
{"turnoutID":01,"getstate":"one"} //for one state
{"getstate":"every"} //for every states