<
From version < 3.1 >
edited by nbw
on 2014/07/05 12:02
To version < 4.1 >
edited by nbw
on 2014/07/05 12:13
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -35,3 +35,17 @@
35 35  ** **currentIndex** -an integer describing the current position in the schedule
36 36  ** **schedule** - a JSON Array of integer values, representing the station tracks in the normal encoding (Hoermann API)
37 37  * **{{status colour="Yellow" title="Need to change this to enable KH-Reverse tracks"/}}locks** - a JSON Array containing the current value of the track permissions, ordered by the default encoding (Hoermann API)
38 +
39 +{{code title="Sample status" language="js" collapse="true"}}
40 +{"msgType":"status",
41 + "data":{
42 + "debug":false,
43 + "cleanup":false,
44 + "pause":false,
45 + "trainCount":8,
46 + "trains":[
47 + {"trainNum":0, "spdSlow":40, "spdCaution":60, "spdNormal":100, "currentIndex":2, "schedule":[8, 10, 25, 29, 41, 43]},
48 + {"trainNum":1, "spdSlow":50, "spdCaution":70, "spdNormal":100, "currentIndex":0, "schedule":[8]},
49 + ... ],
50 + "locks":[-1, -1, -1, 5, -1, -1, 2, 10, -1, -1, ..., -1]}}
51 +{{/code}}
Confluence.Code.ConfluencePageClass[0]
Id
... ... @@ -1,1 +1,1 @@
1 -9471481
1 +9471483
URL
... ... @@ -1,1 +1,1 @@
1 -https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/SS14Railway/pages/9471481/TCP Communication
1 +https://rtsys.informatik.uni-kiel.de/confluence//wiki/spaces/SS14Railway/pages/9471483/TCP Communication