SleepMode

public protocol SleepMode : Peripheral

Sleep mode peripheral interface.

This component allows to configure and activate the drone’s sleep mode/wake up feature.

This peripheral can be retrieved by:

device.getPeripheral(Peripherals.sleepMode)
  • Setting for configuring the secure wake-up message.

    Configures the message to match to trigger wake-up from sleep mode by sending an SMS to the drone.

    Declaration

    Swift

    var wakeupMessage: StringSetting { get }
  • Sleep mode activation status.

    This property is transient: it will be set once when the activation succeeds or fails, and then immediately back to null.

    Declaration

    Swift

    var activationStatus: SleepModeActivationStatus? { get }
  • Activates sleep mode.

    Declaration

    Swift

    func activate() -> Bool

    Return Value

    true if the activation request has been sent to the drone, otherwise false