public final class ScanResponse
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static byte |
D00D_SERVICE_UUID_LSB |
static byte |
D00D_SERVICE_UUID_MSB |
static int |
KONTAKT_DEVICE_SCAN_RESPONSE_MIN_LENGTH |
static byte |
PAYLOAD_VERSION_1 |
static byte |
PDI_SERVICE_UUID_LSB |
static byte |
PDI_SERVICE_UUID_MSB |
static byte[] |
SCAN_RESPONSE_D00D_PREFIX |
static byte[] |
SCAN_RESPONSE_PDI_PREFIX |
static int |
TYPE_SERVICE_DATA |
static ScanResponse |
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static ScanResponse |
fromScanResponseBytes(byte[] scanResponse) |
int |
getBatteryPower() |
byte[] |
getBytes() |
java.lang.String |
getFirmwareVersion() |
java.lang.String |
getUniqueId() |
boolean |
isShuffled() |
boolean |
isUnknown() |
static boolean |
isValidKontaktScanResponse(byte[] serviceData) |
public static final ScanResponse UNKNOWN
public static final int TYPE_SERVICE_DATA
public static final byte PAYLOAD_VERSION_1
public static final byte D00D_SERVICE_UUID_MSB
public static final byte D00D_SERVICE_UUID_LSB
public static final byte PDI_SERVICE_UUID_MSB
public static final byte PDI_SERVICE_UUID_LSB
public static final int KONTAKT_DEVICE_SCAN_RESPONSE_MIN_LENGTH
public static final byte[] SCAN_RESPONSE_D00D_PREFIX
public static final byte[] SCAN_RESPONSE_PDI_PREFIX
public static boolean isValidKontaktScanResponse(byte[] serviceData)
public static ScanResponse fromScanResponseBytes(byte[] scanResponse)
public java.lang.String getFirmwareVersion()
public int getBatteryPower()
public java.lang.String getUniqueId()
public byte[] getBytes()
public boolean isShuffled()
public boolean isUnknown()