forked from project-chip/connectedhomeip
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfabric_admin_service.proto
42 lines (35 loc) · 1.09 KB
/
fabric_admin_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
syntax = "proto3";
import 'pw_protobuf_protos/common.proto';
package chip.rpc;
// Define the message for a synchronized end device with necessary fields
message DeviceCommissioningWindowInfo {
uint64 device_handle_id = 1;
uint32 commissioning_timeout = 2;
uint32 discriminator = 3;
uint32 iterations = 4;
bytes salt = 5;
bytes verifier = 6;
}
// Define the message for commissioning a device with necessary fields
message DeviceCommissioningInfo {
uint32 discriminator = 1;
uint32 iterations = 2;
uint32 setup_pin = 3;
uint32 vendor_id = 4;
uint32 product_id = 5;
bytes salt = 6;
}
message KeepActiveParameters {
uint64 device_handle_id = 1;
uint32 stay_active_duration_ms = 2;
uint32 timeout_ms = 3;
}
// Define the response message to convey the status of the operation
message OperationStatus {
bool success = 1;
}
service FabricAdmin {
rpc OpenCommissioningWindow(DeviceCommissioningWindowInfo) returns (OperationStatus){}
rpc CommissionNode(DeviceCommissioningInfo) returns (pw.protobuf.Empty){}
rpc KeepActive(KeepActiveParameters) returns (pw.protobuf.Empty){}
}