LogFiles
public class LogFiles
Allow to download log files from the vehicle after a flight is complete. For log streaming during flight check the logging plugin.
-
Initializes a new
LogFilesplugin.Normally never created manually, but used from the
Dronehelper class instead.Declaration
Swift
public convenience init(address: String = "localhost", port: Int32 = 50051, scheduler: SchedulerType = ConcurrentDispatchQueueScheduler(qos: .background))Parameters
addressThe address of the
MavsdkServerinstance to connect toportThe port of the
MavsdkServerinstance to connect toschedulerThe scheduler to be used by
Observables -
Undocumented
See moreDeclaration
Swift
public struct RuntimeLogFilesError : Error -
Undocumented
See moreDeclaration
Swift
public struct LogFilesError : Error -
Progress data coming when downloading a log file.
See moreDeclaration
Swift
public struct ProgressData : Equatable -
Log file entry type.
See moreDeclaration
Swift
public struct Entry : Equatable -
Result type.
See moreDeclaration
Swift
public struct LogFilesResult : Equatable -
Get List of log files.
Declaration
Swift
public func getEntries() -> Single<[Entry]> -
Download log file.
Declaration
Swift
public func downloadLogFile(entry: Entry, path: String) -> Observable<ProgressData> -
Download log file synchronously.
Declaration
Swift
public func downloadLogFile(entry: Entry, path: String) -> Single<ProgressData>Parameters
entryEntry of the log file to download.
pathPath of where to download log file to.
-
Erase all log files.
Declaration
Swift
public func eraseAllLogFiles() -> Completable
View on GitHub
Install in Dash
LogFiles Class Reference