get Add Lock Data
abstract suspend fun getAddLockData(activationCode: String, serialNumber: String): CreateDoorLockData?
Retrieves all necessary data from the lock required to add it to your account.
This function retrieves device settings, firmware version, and the signature from the lock, then combines them to create a CreateDoorLockData
object.
The steps involved are:
Get the device settings and revision using
getUnsecureDeviceSettings
.Get the firmware version using
getUnsecureFirmwareVersion
.Get the signature using
getSignature()
.Combine the retrieved data into a
CreateDoorLockData
object.
Return
A CreateDoorLockData
object containing all the necessary data to add the lock to your account.
Parameters
activation Code
The activation code for the lock.
serial Number
The serial number of the lock.
Throws
if an error occurs during the process.