Skip to content

Commit

Permalink
Updates JSON samples in README for API changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
mildmojo committed Oct 7, 2017
1 parent 5a5152b commit f4d3fd5
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 24 deletions.
8 changes: 8 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
## v1.3.0

- [BREAKING] Changes device button list from an object to an array in HTTP
`/buttons` reply and in WebSocket `deviceStates` event.
- Makes test page HTTP polling mode attempt to reconnect every 10s after a failed
poll.
- Fixes player start buttons order in `cal1.xml`.

## v1.2.0

- Adds `deviceStates` event that fires right after connecting to a WebSocket,
Expand Down
48 changes: 24 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,22 +125,22 @@ an HTTP GET to `/buttons`.
{
"name": "COM1",
"buttonCount": 4,
"buttons": {
"3": false,
"4": false,
"5": false,
"6": false
}
"buttons": [
false,
false,
false,
false
]
},
{
"name": "COM2",
"buttonCount": 4,
"buttons": {
"2": false,
"3": false,
"4": false,
"5": false
}
"buttons": [
false,
false,
false,
false
]
}
]
}
Expand Down Expand Up @@ -199,22 +199,22 @@ the XML mappings from the 100 Buttons [sample Unity project](https://github.com/
{
"name": "COM1",
"buttonCount": 4,
"buttons": {
"3": false,
"4": false,
"5": false,
"6": false
}
"buttons": [
false,
false,
false,
false
]
},
{
"name": "COM2",
"buttonCount": 4,
"buttons": {
"2": false,
"3": false,
"4": false,
"5": false
}
"buttons": [
false,
false,
false,
false
]
}
]
}
Expand Down

0 comments on commit f4d3fd5

Please sign in to comment.