Package com.tapkey.mobile.model
Class BleLock
- java.lang.Object
-
- com.tapkey.mobile.model.BleLock
-
- All Implemented Interfaces:
Serializable
public class BleLock extends Object implements Serializable
A nearby Tapkey lock discovered via Bluetooth. Do not instantiate but useBleLockScanner
to get nearby Tapkey locks.- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
String
getBluetoothAddress()
Returns the lock's Bluetooth address.Date
getLastSeen()
Returns at what time the lock was last seen nearby.byte[]
getLockId()
The lock ID.int
getRssi()
Returns the RSSI of the lock when it was last seen.int
hashCode()
-
-
-
Method Detail
-
getLockId
public byte[] getLockId()
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.
04001234BFFB
- Returns:
- the lock ID.
- See Also:
- https://developers.tapkey.io/mobile/concepts/lock_ids/
-
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].
-
-