CertificateUploader
public protocol CertificateUploader : Peripheral
Certificate Uploader peripheral interface.
This peripheral allows to upload certificates to connected devices, in order to unlock new features on the drone.
This peripheral can be retrieved by:
device.getPeripheral(Peripherals.certificateUploader)
-
Latest upload state.
Declaration
Swift
var state: CertificateUploadState? { get }
-
Uploads a certificate file to the drone.
For a successful upload, the drone has to remain in a landed state for the whole upload duration.
Declaration
Swift
func upload(certificate filepath: String) -> CancelableCore?
Parameters
certificate
local path of the file to upload
-
Fetches the signature of the current license certificate installed on the device.
Declaration
Swift
func fetchSignature(completion: @escaping (_ signature: String?) -> Void)
Parameters
completion
the completion callback
signature
the retrieved signature
-
Fetches the information of the current license certificate installed on the drone.
Declaration
Swift
func fetchInfo(completion: @escaping (_ info: CertificateInfo?) -> Void)
Parameters
completion
the completion callback
info
the retrieved information