CertificateManager

CertificateManager peripheral interface.

This peripheral allows to upload certificates to connected devices, in order to activate specific features on the drone.

This peripheral can be obtained from a drone using: drone.getPeripheral(CertificateManager::class.java)

See also

Drone.getPeripheral

Types

Link copied to clipboard

Certificate upload state.

Properties

Link copied to clipboard

Current certificate upload state; null if no upload is ongoing.

Functions

Link copied to clipboard
abstract fun cancelUpload()

Cancels an ongoing certificate upload.

Link copied to clipboard
abstract fun fetchInfo(callback: (info: String?) -> Unit)

Fetches device's current license certificate info.

Link copied to clipboard
abstract fun fetchSignature(callback: (signature: String?) -> Unit)

Fetches device's current license certificate signature.

Link copied to clipboard
abstract fun upload(certificate: File)

Uploads a certificate to the drone.