I am trying to build an android application to gather sensor information from my estimote beacons. I am new to this technology but not new to android. Could someone help me in creating this application. I am also trying to claim a beacon which was given to me but I keep getting the “Claim failed due to server error. Please try after few minutes”. Also, what are the plugins required in android studio to create an app? Are there any templates already available which I could use?
first, you have to know what kind of beacon you have: Proximity beacon, Location beacon or Sticker beacon? You can watch for the Estimote web-site. To be sure, note that the Sticker beacon is the small one, the Proximity beacon is the “basic” one and the Location beacon the stronger one. It will inform you with the data you can have from your beacon:
if you have a Proximity beacon, you can catch the Eddystone-TLM packets sent,
with a Location beacon, you can both recover the Eddystone-TLM and Estimote Telemetry packets that your beacon broadcasts,
the Sticker beacons have their own Nearable with Telemetry packet.
To build an Android app’ using the Estimote technology, you have to follow the instructions given in the Estimote Android SDK GitHub page:
Overview:
be sure that your Android device supports the Bluetooth Low Energy (minimum Android SDK version: 9),
create an Android Studio new project, add the following line to your build.gradle file:
```
dependencies {
compile 'com.estimote:sdk:1.0.3:release@aar'
}
```
and **synchronize** you project,
verify the **permissions** you need to use the Bluetooth features:
**Bluetooth** permissions: `android.permission.BLUETOOTH` and `android.permission.BLUETOOTH_ADMIN`,
**location services** activated and `android.permission.ACCES_COARSE_LOCATION` and `android.permission.ACCESS_FINE_LOCATION` for **Android M or later**,
take care on **Android N and later** because background BLE scanning is limited so you can't set a scan period under 6 seconds.
You have some templates in the GitHub (here), but it’s more convenient to follow the on-line guide. Follow the changelog file if you’re blocked with old classes/methods.
I can’t help you with the claim issue, need here an Estimote staff member.
I have attached a snippet of the code. he startTelemetry function is type void and we are trying to put it in to a string. Could you please let me know what the solution could be?
The Oncreate function is a part of the previous tutorial for ranging of the beacons. Should i remove that? How will it still connect? Attaching a screenshot. Appreciate the help.