Coder Social home page Coder Social logo

android-sdk's Introduction

Estimote SDK for Android

Introduction

This Android SDK can be used to update the settings of multiple Estimote beacons at once. You no longer need to connect to each beacon individually. Instead, you use Estimote Cloud to queue ‘pending settings’ on your beacons. Then, your Android app equipped with this SDK (see Bulk Updater section) can propagate those settings the moment it encounters the beacons. This also means that, once you deploy the beacons, users of your app can propagate the settings by simply being around the beacons.

With this SDK, you can:

  • Enable or disable packets (e.g. Estimote Monitoring, iBeacon, Eddystone-UID)
  • Modify the settings of individual beacons (e.g. increase the broadcasting power, decrease the advertising interval, modify Eddystone-URL’s link)
  • Update Estimote beacon firmware

Keep in mind that tags & attachments from Estimote Proximity SDK are updated instantly, without the need to propagate settings to beacons.

All the proximity monitoring features of this SDK have been deprecated and are no longer supported. Instead, we strongly recommend Estimote Proximity SDK for Android powered by Estimote Monitoring. On top of Proximity SDK, use this Android SDK for beacon fleet management.

If you simply need to change the settings (or apply ‘pending settings’) of the nearby Estimote beacons, get Estimote Android app. For a single beacon or a few of them, this will be the fastest method.

If you have more Estimote devices, Estimote Deployment app will be a better choice. Use it to propagate settings to multiple beacons at once. At this point, it’s available on iOS only.

To learn more about this Android SDK, review the Java documentation and check the Developer Portal tutorial. Visit also Estimote Cloud API docs.

Installation

Estimote SDK for Android is distributed via JCenter repository. To be able to grab necessary artifacts, ensure you have JCenter repository configured. Usually, it's done by the following lines in top-level build.gradle of your project:

allprojects {
    repositories {
        jcenter()
        (all other repositories you are using goes here)
    }
}

Once you have JCenter configured, add this line to your build.gradle file:

dependencies {
  compile 'com.estimote:sdk:1.4.5'
}

Still using Eclipse? Here is how to import our sdk to your project.

Initializing Estimote SDK

Initialize Estimote SDK in your Application class onCreate() method:

//  To get your AppId and AppToken you need to create new application in Estimote Cloud.
EstimoteSDK.initialize(applicationContext, appId, appToken);
// Optional, debug logging.
EstimoteSDK.enableDebugLogging(true);

Requirements

The SDK system works on Android 4.3 or above and requires a device with Bluetooth Low Energy (Estimote SDK's minimum Android SDK version is 9).

With this feature you can:

  • Enable or disable packets (e.g. iBeacon, Eddystone-UID)
  • Modify the settings of individual beacons (e.g. increase the broadcasting power, decrease the advertising interval, modify Eddystone-URL’s link)
  • Update Estimote beacon firmware

Check this tutorial for the details on how to bulk update your beacons with this SDK.

Configuring individual beacons

Connecting to beacons in Android SDK

In order to modify any settings of a beacon, you’ll need to connect to it first. If a beacon is set to Deployed & Protected access mode, you have to be the beacon's owner in Estimote Cloud to modify any settings. Every attempt to connect with a device not logged in to your Estimote account will fail. Enable Development access mode to allow your co-workers to also edit beacon's settings.

Read the tutorial on how to connect to Estimote Beacons with this SDK here.

Basic operations on connected devices

Once you establish a connection with a beacon, you can perform various actions that we already outlined in Bulk Updater section. This SDK can both read (return the current values) and write settings (set new values). For the details on how to run both, follow this tutorial.

Your feedback and questions

At Estimote, we're massive believers in feedback! Here are some common ways to share your thoughts with us:

Changelog

To see what has changed in recent versions of Estimote SDK for Android, see the CHANGELOG.

android-sdk's People

Contributors

wiktor avatar paweldylag avatar wafel82 avatar poberro avatar martynal avatar heypiotr avatar bvermeule avatar deshraj avatar neurosnap avatar pt2121 avatar ociepa avatar snehajalukar avatar topgenorth avatar piotrekmalek avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.