Created
September 12, 2019 02:49
-
-
Save whc2001/2f65756150ceced609e45a1bad5eaa07 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [↑]RPC Request | |
| { | |
| "id":"$0", | |
| "method":"$1", | |
| "params":[ | |
| $2 | |
| ], | |
| "type":"rpc-request" | |
| } | |
| $0: Unknown UUID, can be an empty string | |
| $1: RPC command | |
| $2: RPC command parameters | |
| Commands: | |
| set-mode: | |
| mode: [string] {proximity, gesture} | |
| -------- | |
| [↓]RPC Response | |
| { | |
| "type":"rpc-response", | |
| "id":"", | |
| "error":null, | |
| "value":null | |
| } | |
| -------- | |
| [↓]Unsolicited Event | |
| { | |
| "type":"event", | |
| "name":"$1", | |
| "detail":{ | |
| $2 | |
| } | |
| } | |
| $1: Event name | |
| $2: Event parameters | |
| Events: | |
| error: | |
| msg: [string] e.g. "Couldn't decode JSON" | |
| proximity-data: | |
| proximity: [int] [0 (farthest), 255(nearest)] | |
| gesture: | |
| type: [string] {up, down, left, right} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment