AltBeacon / android-beacon-library

Allows Android apps to interact with BLE beacons
Apache License 2.0
2.84k stars 836 forks source link

How to extract the Beacon Uptime from the eddystone-TLM packet. I am using Confidex beacon for my project. Do we have any library function to extract this information. #1112

Closed rakathal closed 1 year ago

rakathal commented 1 year ago

Expected behavior

Actual behavior

Steps to reproduce this behavior

Mobile device model and OS version

Android Beacon Library version

IMPORTANT: This forum is reserved for feature requests or reproducible bugs with the library itself. If you need help with using the library with your project, please open a new question on StackOverflow.com.

davidgyoung commented 1 year ago

No, the Eddystone frames, including Eddystone-TLM to not include any information about uptime.

rakathal commented 1 year ago

This is the information that Confidex Team has provided image

rakathal commented 1 year ago

@davidgyoung : I have rephrased my question for better understanding. Do we have way in Android Beacon library to extract Beacon Uptime information from the Eddystone-TLM Frame ? Confidex has added this parameter in the their beacons and we wanted to use that. Please help

davidgyoung commented 1 year ago

Yes, it seems that is correct -- the Eddystone-TLM Frame does have an uptime field. I had not worked with this format in years, so I had forgotten.

So yes, you can use the library to read that field. How to do so is fully documented in the Getting Ranging Updates from Nearby Beacons With Telemetry section here