Skip to content

Commit

Permalink
ftp: remove reset and compid getter
Browse files Browse the repository at this point in the history
We shouldn't need that.

Signed-off-by: Julian Oes <[email protected]>
  • Loading branch information
julianoes committed Oct 13, 2023
1 parent 160912d commit 442b49b
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions protos/ftp/ftp.proto
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@ option java_outer_classname = "FtpProto";
* Implements file transfer functionality using MAVLink FTP.
*/
service FtpService {
/*
* Resets FTP server in case there are stale open sessions.
*/
rpc Reset(ResetRequest) returns(ResetResponse) { option (mavsdk.options.async_type) = ASYNC; }
/*
* Downloads a file to local directory.
*/
Expand Down Expand Up @@ -53,23 +49,10 @@ service FtpService {
* Compares a local file to a remote file using a CRC32 checksum.
*/
rpc AreFilesIdentical(AreFilesIdenticalRequest) returns(AreFilesIdenticalResponse) {}
/*
* Set root directory for MAVLink FTP server.
*/
rpc SetRootDirectory(SetRootDirectoryRequest) returns(SetRootDirectoryResponse) { option (mavsdk.options.async_type) = SYNC; }
/*
* Set target component ID. By default it is the autopilot.
*/
rpc SetTargetCompid(SetTargetCompidRequest) returns(SetTargetCompidResponse) { option (mavsdk.options.async_type) = SYNC; }
/*
* Get our own component ID.
*/
rpc GetOurCompid(GetOurCompidRequest) returns(GetOurCompidResponse) { option (mavsdk.options.async_type) = SYNC; }
}

message ResetRequest {}
message ResetResponse {
FtpResult ftp_result = 1;
}

message SubscribeDownloadRequest {
Expand Down Expand Up @@ -136,25 +119,13 @@ message AreFilesIdenticalResponse {
bool are_identical = 2; // Whether the files are identical.
}

message SetRootDirectoryRequest {
string root_dir = 1; // The root directory to set.
}
message SetRootDirectoryResponse {
FtpResult ftp_result = 1;
}

message SetTargetCompidRequest {
uint32 compid = 1; // The component ID to set.
}
message SetTargetCompidResponse {
FtpResult ftp_result = 1;
}

message GetOurCompidRequest {}
message GetOurCompidResponse {
uint32 compid = 1; // Our component ID.
}

// Progress data type for file transfer.
message ProgressData {
uint32 bytes_transferred = 1; // The number of bytes already transferred.
Expand Down

0 comments on commit 442b49b

Please sign in to comment.