AddLockConnectionManager

Add Lock connection manager. Manages unsecure connection with Tedee lock. To establish successful connection with lock you need to provide serial number.

Constructors

Link copied to clipboard
constructor(context: Context)

Create empty Lock Lock connection manager

Functions

Link copied to clipboard
open override fun clear()

Clear all resources and close active connection

Link copied to clipboard
open override fun connectForAdding(serialNumber: String, keepConnection: Boolean, addLockConnectionListener: IAddLockConnectionListener)

Initiates an add lock connection to the lock.

Link copied to clipboard
open override fun disconnect()

Disconnect from the lock and notify the listener

Link copied to clipboard
open suspend override fun getAddLockData(activationCode: String, serialNumber: String): CreateDoorLockData

Retrieves all necessary data from the lock required to add it to your account.

Link copied to clipboard
open suspend override fun getSignature(): String?

Retrieves the signature from the lock.

Link copied to clipboard
open suspend override fun getUnsecureDeviceSettings(isLockAdded: Boolean): DeviceSettings?

Retrieves the device settings from the lock.

Link copied to clipboard
open suspend override fun getUnsecureFirmwareVersion(isLockAdded: Boolean): FirmwareVersion?

Retrieves the firmware version from the lock.

Link copied to clipboard
open suspend override fun registerDevice(registerDeviceData: RegisterDeviceData)

Registers the device with the given registration data.

Link copied to clipboard
open suspend override fun setSignedTime(signedTime: SignedTime): ByteArray?

Sends the SET_SIGNED_TIME (0x71) command to the lock with the provided signed time. This command is crucial for ensuring that the lock's operations are synchronized with a trusted time source, enhancing the security and reliability of its operations.