public class UriBeacon
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static byte[] |
encodeUri(java.lang.String uri)
Creates the Uri string with embedded expansion codes.
|
int |
getFlags()
Returns the Uri flags indicating the discoverable mode and capability of the device.
|
int |
getTxPowerLevel()
Returns the transmission power level of the packet in dBm.
|
java.lang.String |
getUriString()
Returns the Uri text of the packet.
|
static UriBeacon |
parseFromBytes(byte[] scanRecordBytes)
Parse scan record bytes to
UriBeacon . |
public static UriBeacon parseFromBytes(byte[] scanRecordBytes)
UriBeacon
.
The format is defined in Uri Beacon Definition.scanRecordBytes
- The scan record of Bluetooth LE advertisement and/or scan response.public int getFlags()
public int getTxPowerLevel()
pathloss = txPowerLevel - rssi
public java.lang.String getUriString()
public static byte[] encodeUri(java.lang.String uri)
uri
- to be encoded