public interface ADManufacturerSpecificBuilder
Modifier and Type | Method and Description |
---|---|
ADManufacturerSpecific |
build(int length,
int type,
byte[] data,
int companyId)
Build an AD structure of type Manufacturer Specific Data.
|
ADManufacturerSpecific build(int length, int type, byte[] data, int companyId)
length
- The length of the AD structure. It is the value
of the first octet of the byte sequence of the
AD structure.type
- The AD type. The value is always 0xFF which represents
Manufacturer Specific Data.data
- The AD data. It is the third and following octets
of the byte sequence of the AD structure. Note that
the value of the first two bytes represents the
company ID.companyId
- The company ID. It is the value generated by
interpreting the third and fourth octets of the
byte sequence of the AD structure in little endian.ADManufacturerSpecific
or
its subclass. If the builder fails to build an
instance, null
should be returned.Copyright © 2016. All rights reserved.