Estimote SDK allows application developer to allow application to interact with beacons. The SDK requiremetns are Android SDK 4.3 or above and BLE. The SDK allows applications to do the below
- Beacon Ranging
- Beacon Monitoring
- Beacon characteristic reading and writing (proxymity, UUID, major, minor values, broadcasting power, advertising interval)
Installation looks to be straight forward. We just need to copy the estimote-sdk-preview.jar file into the application lib directory. And the following permissions needs to be given to the app.
1. Setting the ranging listener. The code is something like this
private BeaconManager beaconManager = new BeaconManager(context);
beaconManager.startRangingListener (new BeaconManager.RangingListener()
{
@override public void onBeaconDiscovered(Region region, List beacon)
{
}
}
- Beacon Ranging
- Beacon Monitoring
- Beacon characteristic reading and writing (proxymity, UUID, major, minor values, broadcasting power, advertising interval)
Installation looks to be straight forward. We just need to copy the estimote-sdk-preview.jar file into the application lib directory. And the following permissions needs to be given to the app.
android:name="android.permission.BLUETOOTH"/>
android:name="android.permission.BLUETOOTH_ADMIN"/>
android:name="com.estimote.sdk.service.BeaconService"
android:exported="false"/>
The main methods are:1. Setting the ranging listener. The code is something like this
private BeaconManager beaconManager = new BeaconManager(context);
beaconManager.startRangingListener (new BeaconManager.RangingListener()
{
@override public void onBeaconDiscovered(Region region, List
{
}
}
No comments:
Post a Comment