summaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2014-09-27 19:56:21 -0400
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2014-09-27 19:56:21 -0400
commite3162f7da4b6b5ad422bccdb9b2a4e1b144ab9c9 (patch)
tree8562c39987fad59481f60f7953a769fbcc31754b /README.md
parentedf010f735fcb8ace870b07b71db06c2c7cf2476 (diff)
Add a command to change message format while running.
Diffstat (limited to 'README.md')
-rw-r--r--README.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/README.md b/README.md
index daed2935..719fb0e8 100644
--- a/README.md
+++ b/README.md
@@ -328,6 +328,28 @@ changed.
{ "command_response": "af_bypass", "status": true}
+#### Message Format Control
+
+The `message_format` command determines the format for output data from the VI
+and also the expected format of commands sent to the VI.
+
+Valid formats are `json` and `binary`.
+
+**Request**
+
+ { "command": "message_format",
+ "bus": 1,
+ "format": "json"
+ }
+
+**Response**
+
+If the format was changed successfully, the `status` in the response will be
+`true`. The response will be in the new message format.
+
+ { "command_response": "message_format", "status": true}
+
+
### Trace File Format
An OpenXC vehicle trace file is a plaintext file that contains JSON objects,