aboutsummaryrefslogtreecommitdiffstats
path: root/openxc.proto
diff options
context:
space:
mode:
authorChristopher Peplin <chris.peplin@rhubarbtech.com>2014-10-06 23:25:13 -0400
committerChristopher Peplin <chris.peplin@rhubarbtech.com>2014-10-06 23:25:13 -0400
commitd17a9c7988b05e70607d1eb823fbe160d0a4c506 (patch)
tree092615416cbda9d488bec8be210230d32c62320d /openxc.proto
parent9682309b7d7450235bea95841f7442e6712db379 (diff)
Remove redundant 'type' field from binary SimpleVehicleMessage.
You can figure out the type based on the value and event DynamicFields. Fixed #19.
Diffstat (limited to 'openxc.proto')
-rw-r--r--openxc.proto10
1 files changed, 3 insertions, 7 deletions
diff --git a/openxc.proto b/openxc.proto
index 3becaa5c..252f214b 100644
--- a/openxc.proto
+++ b/openxc.proto
@@ -120,13 +120,9 @@ message DynamicField {
}
message SimpleMessage {
- enum Type { STRING = 1; NUM = 2; BOOL = 3;
- EVENTED_STRING = 4; EVENTED_NUM = 5; EVENTED_BOOL = 6;}
-
- optional Type type = 1;
- optional string name = 2;
- optional DynamicField value = 3;
- optional DynamicField event = 4;
+ optional string name = 1;
+ optional DynamicField value = 2;
+ optional DynamicField event = 3;
}
// TODO we should also consider having an enum type, having each specific