public class ServiceData extends ADStructure
Constructor and Description |
---|
ServiceData()
Constructor to create an instance with length=1, type=0x16
(Service Data - 16-bit UUID), and data=
null . |
ServiceData(int length,
int type,
byte[] data)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
UUID |
getServiceUUID()
Get the service UUID.
|
String |
toString() |
public ServiceData()
null
.public ServiceData(int length, int type, byte[] data)
length
- The length of the AD structure. The value should be
data.length + 1
.type
- The AD type. The value should be one of
0x16 (Service Data - 16-bit UUID),
0x20 (Service Data - 32-bit UUID), and
0x21 (Service Data - 128-bit UUID).data
- The AD data.public UUID getServiceUUID()
public String toString()
toString
in class ADStructure
Copyright © 2016. All rights reserved.