Class BleLock

    • Constructor Detail

      • BleLock

        public BleLock​(byte[] lockId,
                       String physicalLockId,
                       String bluetoothAddress,
                       Date lastSeen,
                       int rssi)
    • Method Detail

      • getLockId

        @Deprecated
        public byte[] getLockId()
        Deprecated.
        Use the Base64-encoded representation returned by getPhysicalLockId() instead.
        The lock ID. The lock ID has the following format:

        LLX

        • LL: The length of the actual ID (X), encoded in 2 bytes, little endian.
        • X: The actual ID.
        The following, exemplary lock ID has two bytes of length header and four bytes of ID payload:

        04001234BFFB

        Returns:
        the lock ID.
        See Also:
        https://developers.tapkey.io/mobile/concepts/lock_ids/
      • getPhysicalLockId

        public String getPhysicalLockId()
        The Base64-encoded TLCP lock ID.
        Returns:
        theBase64-encoded TLCP lock ID
      • getBluetoothAddress

        public String getBluetoothAddress()
        Returns the lock's Bluetooth address.
        Returns:
        the lock's Bluetooth address. The Bluetooth address is a 48-bit identifier represented as a String of 6 bytes in hexadecimal separated by colons. For example, "00:11:22:AA:BB:CC".
      • getLastSeen

        public Date getLastSeen()
        Returns at what time the lock was last seen nearby.
        Returns:
        the time the lock was last seen.
      • getRssi

        public int getRssi()
        Returns the RSSI of the lock when it was last seen.
        Returns:
        the RSSI of the lock. In dBm. The valid range is [-127, 126].
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object