public class EddystoneTLM extends Eddystone
Eddystone.FrameType
Constructor and Description |
---|
EddystoneTLM()
Constructor to create an instance with length=17, type=0x16
(Service Data - 16-bit UUID), service-UUID=0xFEAA (Eddystone),
frame-type=TLM, tlm-version=0, battery-voltage=0,
beacon-temperature=-128, advertisement-count=0, and elapsed-time=0.
|
EddystoneTLM(int length,
int type,
byte[] data)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
getAdvertisementCount()
Get the count of advertisement frames of all types emitted by the beacon
since power-up or reboot.
|
int |
getBatteryVoltage()
Get the current battery charge in millivolts, expressed as 1 mV per bit.
|
float |
getBeaconTemperature()
Get the beacon temperature in degrees Celsius sensed by the beacon.
|
long |
getElapsedTime()
Get the elapsed time in milliseconds since beacon power-up or reboot.
|
int |
getTLMVersion()
Get the TLM version.
|
String |
toString() |
getFrameType
getServiceUUID
public EddystoneTLM()
public EddystoneTLM(int length, int type, byte[] data)
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 TLM.
The first two bytes should be 0xAA and 0xFE
(meaning Eddystone). The third byte should be 0x2?
(meaning Eddystone TLM).public int getTLMVersion()
public int getBatteryVoltage()
public float getBeaconTemperature()
public long getAdvertisementCount()
public long getElapsedTime()
Copyright © 2016. All rights reserved.