implement command responses

This commit is contained in:
2025-12-28 16:23:42 -05:00
parent c3253f3204
commit 678b10de08
8 changed files with 242 additions and 57 deletions

View File

@@ -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);
}