ftsrg / BME-MODES3

Model-based Demonstrator for Smart and Safe Systems
https://inf.mit.bme.hu/research/projects/modes3
16 stars 8 forks source link

Auto TurnoutStateChanged messages #122

Closed june9666 closed 5 years ago

june9666 commented 5 years ago
june9666 commented 5 years ago

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