getLockState

abstract suspend fun getLockState(): ByteArray?

Sends a GET_STATE (0x5A) command to the lock.

For example, a response might look like 00, 02, 00 where:

  • 00 means the command completed successfully.

  • 02 represents the lock's current state (e.g., Lock Closed).

  • 00 indicates the last change in lock status occurred without any problems. A LOCK_STATUS value of 01 indicates an error (LOCK_STATUS_ERROR_JAMMED), meaning the lock was jammed during the last attempt to change its state.