public class ADManufacturerSpecific extends ADStructure
Constructor and Description |
---|
ADManufacturerSpecific()
Constructor to create an instance with length=3, type=0xFF,
data={0xFF,0xFF}, and companyId=0xFFFF.
|
ADManufacturerSpecific(int length,
int type,
byte[] data,
int companyId)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
int |
getCompanyId()
Get the company ID.
|
void |
setCompanyId(int companyId)
Set the company ID.
|
String |
toString() |
public ADManufacturerSpecific()
public ADManufacturerSpecific(int length, int type, byte[] data, int companyId)
length
- The length of the AD structure.type
- The AD type. Should be 0xFF (Manufacturer Specific Data).companyId
- The company ID.data
- The AD data. Note that the value of the first two bytes represents
the company ID.public int getCompanyId()
The list of official company IDs can be found at Company Identifiers.
public void setCompanyId(int companyId)
companyId
- The company ID.public String toString()
toString
in class ADStructure
Copyright © 2016. All rights reserved.