summaryrefslogtreecommitdiff
path: root/data.proto
diff options
context:
space:
mode:
authorAditya Naik2020-06-24 10:53:58 -0400
committerAditya Naik2020-06-24 10:53:58 -0400
commitda3f69722aa088a4530095d94a6d206c1ce06e03 (patch)
tree823f7899a2d59af38ac3472e9e2e092abd4b47a9 /data.proto
parent7897fd742ffc4afb82faa5fc8f3a39b12b8c667b (diff)
parent0915882d1ee834d2cc7c8d4ca9bcdb7495dbe1a1 (diff)
Master mergerefactor
Diffstat (limited to 'data.proto')
-rw-r--r--data.proto23
1 files changed, 6 insertions, 17 deletions
diff --git a/data.proto b/data.proto
index 1506fb0..b704d05 100644
--- a/data.proto
+++ b/data.proto
@@ -50,22 +50,11 @@ message m2s_CTS {
required uint32 timeout = 1;
}
-/* Commands when SOR code is 3 */
-message m2s_command {
- optional uint32 source_module_id = 1 [default=1];
- optional uint32 source_i2c_address = 2 [default=1];
-
- optional bytes cmd_bytes = 3;
- optional string cmd_str = 4;
-}
-
-/* Commands from slave */
-message s2m_command {
- optional uint32 dest_module_id = 1;
- repeated uint32 dest_module_id_multicast = 2;
-
- optional bytes cmd_bytes = 3;
- optional string cmd_str = 4;
+message command {
+ required uint32 source_module_id = 1;
+ required uint32 dest_module_id = 2;
+ optional bytes cmd_bytes = 3;
+ optional string cmd_str = 4;
}
message _datapoint {
@@ -80,4 +69,4 @@ message _datapoint {
message s2m_data {
repeated _datapoint datapoints = 1;
-} \ No newline at end of file
+}