KillSwitch

public protocol KillSwitch : Peripheral

Kill-switch peripheral interface.

This component allows to configure and activate the drone’s kill-switch feature.

This peripheral can be retrieved by:

device.getPeripheral(Peripherals.killSwitch)
  • Kill-switch mode setting.

    Declaration

    Swift

    var mode: KillSwitchModeSetting { get }
  • Setting for configuring the secure activation message.

    Configures the message to match to trigger the kill-switch by sending a SMS to the drone.

    Declaration

    Swift

    var secureMessage: StringSetting { get }
  • Identifies how kill-switch has been activated; nil if kill-switch has not been activated yet.

    Declaration

    Swift

    var activatedBy: KillSwitchActivationSource? { get }
  • Activates kill-switch.

    Declaration

    Swift

    func activate() -> Bool

    Return Value

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