KeyManager LED Settings

Completed

Comments

1 comment

  • DJI Developer Support

    Please refer to the code below:

    var param = LEDsSettings()
    param.setNavigationLEDsOn(true)
    KeyManager.getInstance().setValue(
    KeyTools.createKey(FlightControllerKey.KeyLEDsSettings), param,
    object : CompletionCallback {
    override fun onSuccess()
    { Log.i("Success", "") }
    override fun onFailure(error: IDJIError)
    { Log.i("Failed", "${error.errorCode()}")
    Log.i("Failed", "${error.description()}") } })
    0
    Comment actions Permalink

Please sign in to leave a comment.