ILock Interactor
Interface defining operations for interacting with a lock. This includes connecting to the lock, sending commands, and handling state changes.
Inheritors
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.
Sends a PULL_SPRING (0x52) command to pull the spring. The response is a Byte representing the lock's result, 00 means the command completed successfully.
Send any command to the Lock. The response is a ByteArray, structured as follows: [COMMAND_RESULT_STATUS, OTHER_INFORMATION]
.
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.