diff options
| author | Aditya Naik | 2020-04-09 01:00:55 -0400 |
|---|---|---|
| committer | Aditya Naik | 2020-04-09 01:00:55 -0400 |
| commit | 9f72d8ac2f4ad1c08403e48d2238a88eebea6f81 (patch) | |
| tree | 56528244c34725953b0d8fc08b9c3ff58267d038 /Src/handshake.proto | |
| parent | 5956d085d12ffe1ffdbd41ce40fddd52a77cb555 (diff) | |
Project refactor
Diffstat (limited to 'Src/handshake.proto')
| -rw-r--r-- | Src/handshake.proto | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/Src/handshake.proto b/Src/handshake.proto deleted file mode 100644 index 611e600..0000000 --- a/Src/handshake.proto +++ /dev/null @@ -1,40 +0,0 @@ -// Protocol for handshake -// m2s: master to slave -// s2m: slave to master - -syntax = "proto2"; - -message m2s_MDR_request { - // Record type that is requested. Will indicate verbosity in the future - required uint32 record_type = 1; -} - -message _subscriptions { - optional uint32 module_id = 1 [default=0]; - optional uint32 entity_id = 2 [default=0]; - optional uint32 module_class = 3 [default=0]; - optional uint32 i2c_address = 4 [default=0]; -} - -message s2m_MDR_response { - required float MDR_version = 1; - - // Module unique ID - required uint32 module_id = 2; - // Class of this module - required uint32 module_class = 3; - // One of more bytes; each bit indicates whether the entity is measured by this module - required uint32 entity_id = 4; - - // Entities to which this module wants to subscribe - repeated _subscriptions subscriptions = 5; -} - -// message m2s_broadcast { -// message _slave_info { -// uint32 i2c_address = 1; -// uint32 module_id = 2; -// uint32 entity_id = 3; -// } -// repeated _slave_info slave_info = 1; -// }
\ No newline at end of file |
