initialize Lock
open override fun initializeLock(deviceName: String, key: String, passkey: String, onResult: (Result<InitLockSuccess>) -> Unit)
Initializing of lock has to be done before any unlock, lock, prepareEndRental or finalizeLock This function needs to be called only once per rental. In case, initializeLock is called again later after some unlocking and locking, the lock might not be able to open due to the eKey getting reset.
Parameters
device Name
String value of the given lock device name for bluetooth communication
key
String value of the valid eKey for the lock
passkey
String value associated with the provided e-key
Throws
Uninitialized Sdk Error
(bike.donkey.lockkit.errors.UninitializedSdkError) if the SDK has not been successfully initialized