Package org.altbeacon.beacon.utils
Class EddystoneTelemetryAccessor
- java.lang.Object
-
- org.altbeacon.beacon.utils.EddystoneTelemetryAccessor
-
public class EddystoneTelemetryAccessor extends Object
Utility class for working beacons that include Eddystone-TLM (telemetry) information Created by dyoung on 12/21/15.
-
-
Constructor Summary
Constructors Constructor Description EddystoneTelemetryAccessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBase64EncodedTelemetry(Beacon beacon)Extracts the raw Eddystone telemetry bytes from the extra data fields of an associated beacon and base64 encodes them.byte[]getTelemetryBytes(Beacon beacon)Extracts the raw Eddystone telemetry bytes from the extra data fields of an associated beacon.
-
-
-
Method Detail
-
getTelemetryBytes
public byte[] getTelemetryBytes(Beacon beacon)
Extracts the raw Eddystone telemetry bytes from the extra data fields of an associated beacon. This is useful for passing the telemetry to Google's backend services.- Parameters:
beacon-- Returns:
- the bytes of the telemetry frame
-
getBase64EncodedTelemetry
public String getBase64EncodedTelemetry(Beacon beacon)
Extracts the raw Eddystone telemetry bytes from the extra data fields of an associated beacon and base64 encodes them. This is useful for passing the telemetry to Google's backend services.- Parameters:
beacon-- Returns:
- base64 encoded telemetry bytes
-
-