Lock Connection Manager
Lock connection manager. Manages connection with Tedee lock. To establish successful connection with lock you need to provide serial number, device certificate and mobile public key.
Properties
Provider for signed date-time, used in securing lock interactions. This property should be set to an instance of an ISignedTimeProvider implementation. If this property is not set, NotProvidedSignedTime error will be return.
Functions
Initiates a secure connection to the lock.
Disconnect from the lock and notify the listener
Retrieves the device settings from the lock.
Retrieves the firmware version from the lock.
Sends a GET_STATE (0x5A) command to the lock. The response is a ByteArray representing the lock's status, structured as follows: [COMMAND, COMMAND_RESULT_STATUS, ACTUAL_LOCK_STATE, LOCK_STATUS]
.
Sends a PULL_SPRING (0x52) command to pull the spring Before sending the command, this function checks the state of Bluetooth and location services:
Send any command to the Lock.
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.
Waits for lock state change.