implement command responses
This commit is contained in:
@@ -60,10 +60,24 @@ message CommandDefinitionRequest {
|
||||
}
|
||||
|
||||
message Command {
|
||||
Timestamp timestamp = 1;
|
||||
map<string, TelemetryValue> parameters = 2;
|
||||
UUID uuid = 1;
|
||||
Timestamp timestamp = 2;
|
||||
map<string, TelemetryValue> parameters = 3;
|
||||
}
|
||||
|
||||
message CommandResponse {
|
||||
UUID uuid = 1;
|
||||
bool success = 2;
|
||||
string response = 3;
|
||||
}
|
||||
|
||||
message ClientSideCommand {
|
||||
oneof inner {
|
||||
CommandDefinitionRequest request = 1;
|
||||
CommandResponse response = 2;
|
||||
}
|
||||
}
|
||||
|
||||
service CommandService {
|
||||
rpc NewCommand (CommandDefinitionRequest) returns (stream Command);
|
||||
rpc NewCommand (stream ClientSideCommand) returns (stream Command);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user