public abstract class Eddystone extends ServiceData
Modifier and Type | Class and Description |
---|---|
static class |
Eddystone.FrameType
Eddystone frame types.
|
Constructor and Description |
---|
Eddystone()
Constructor to create an instance with length=3, type=0x16
(Service Data - 16-bit UUID), and service-UUID=0xFEAA
(Eddystone).
|
Eddystone(int length,
int type,
byte[] data,
Eddystone.FrameType frameType)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Eddystone.FrameType |
getFrameType()
Get the
frame type . |
String |
toString() |
getServiceUUID
public Eddystone()
public Eddystone(int length, int type, byte[] data, Eddystone.FrameType frameType)
length
- The length of the AD structure.type
- The AD type. The value should always be 0x16
(Service Data - 16-bit UUID).data
- The AD data whose format is Eddystone.
The first two bytes should be 0xAA and 0xFE.frameType
- The frame type
.public Eddystone.FrameType getFrameType()
frame type
.public String toString()
toString
in class ServiceData
Copyright © 2016. All rights reserved.