Class BleLock

    • Constructor Detail

      • BleLock

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

      • getLockId

        public byte[] getLockId()
        The lock ID. The lock ID has the following format:


        • 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:


        the lock ID.
        See Also:
      • getBluetoothAddress

        public String getBluetoothAddress()
        Returns the lock's Bluetooth address.
        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.
        the time the lock was last seen.
      • getRssi

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

        public int hashCode()
        hashCode in class Object