LogControl
public protocol LogControl : Peripheral
Log Control peripheral interface.
This peripheral allows to deactivate logs on the drone.
This peripheral can be retrieved by:
device.getPeripheral(Peripherals.logControl)
-
Indicates if the logs are enabled on the drone.
Declaration
Swift
var areLogsEnabled: Bool { get }
-
Indicates if the deactivate command is supported.
Declaration
Swift
var canDeactivateLogs: Bool { get }
-
Requests the deactivation of logs.
Note
The logs stay disabled for the session, and will be enabled again at the next restart. This method has no action if canDeactivateLogs is
false
Declaration
Swift
func deactivateLogs() -> Bool
Return Value
true
if the deactivation has been asked,false
otherwise -
Setting controlling whether mission logs are recorded.
Declaration
Swift
var missionLogs: BoolSetting? { get }