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 SegmentOccupancy messages #124

Closed june9666 closed 5 years ago

june9666 commented 5 years ago

Segment Occupancy

Status info about which segment has train on it. Segment Occupancy messages are sent automatically by StationControllerAPI. "state" has the current state.

Topic: segment/occupancy {"segmentID":01,"occupancy":"occupied"} {"segmentID":01,"occupancy":"free"}

In addition, to extend basic functionality, you can request manually to get Occupancy. Just send:

Topic: segment/occupancy {"segmentID":01,"getoccupancy":"one"} //for one segment {"getoccupancy":"every"} //for every segment