forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfabric_bridge_service.proto
43 lines (36 loc) · 1.39 KB
/
fabric_bridge_service.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
syntax = "proto3";
import 'pw_protobuf_protos/common.proto';
package chip.rpc;
// Define the message for a synchronized end device with necessary fields
message SynchronizedDevice {
// Using device_handle_id instead of node_id because over multiple fabrics
// there can be overlapping node_ids that are not unique.
uint64 device_handle_id = 1;
optional string unique_id = 2;
optional string vendor_name = 3;
optional uint32 vendor_id = 4;
optional string product_name = 5;
optional uint32 product_id = 6;
optional string node_label = 7;
optional uint32 hardware_version = 8;
optional string hardware_version_string = 9;
optional uint32 software_version = 10;
optional string software_version_string = 11;
optional bool is_icd = 12;
}
message KeepActiveChanged {
uint64 device_handle_id = 1;
uint32 promised_active_duration_ms = 2;
}
message AdministratorCommissioningChanged {
uint64 device_handle_id = 1;
uint32 window_status = 2;
optional uint32 opener_fabric_index = 3;
optional uint32 opener_vendor_id = 4;
}
service FabricBridge {
rpc AddSynchronizedDevice(SynchronizedDevice) returns (pw.protobuf.Empty){}
rpc RemoveSynchronizedDevice(SynchronizedDevice) returns (pw.protobuf.Empty){}
rpc ActiveChanged(KeepActiveChanged) returns (pw.protobuf.Empty){}
rpc AdminCommissioningAttributeChanged(AdministratorCommissioningChanged) returns (pw.protobuf.Empty){}
}