connectForAdding

abstract fun connectForAdding(serialNumber: String, keepConnection: Boolean = true, addLockConnectionListener: IAddLockConnectionListener)

Initiates an add lock connection to the lock.

This method is used to connect to the lock without a secure session, typically for the purpose of adding the lock to an account.

Parameters

serialNumber

The serial number of the device, e.g., "12345678-901234".

keepConnection

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

addLockConnectionListener

Callback interface for lock connection changes.