connect

abstract fun connect(serialNumber: String, deviceCertificate: DeviceCertificate, keepConnection: Boolean = true, secureConnectionListener: ILockConnectionListener)

Initiates a secure connection to the lock.

Parameters

serialNumber

Serial number of the device ex. 12345678-901234

deviceCertificate

A certificate required for secure connection to the device.

keepConnection

If true, maintains the connection after initial setup; if false, connection has timeout @see DEFAULT_TIMEOUT_FOR_SCANNING.

secureConnectionListener

Callback interface for lock connection changes.