Closed june9666 closed 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
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