Git Product home page Git Product logo

sensortag-cc2650's Introduction

SensorTag-CC2650

This project was fork from https://git.ti.com/sensortag-20-android which is the last open source version of the SensorTag Android application for BLE provided by Texas Instruments. Due to licensing restrictions Texas Instruments was no longer able to keep the open source code in sync with the SensorTag app in Google Play (see legend on https://git.ti.com/sensortag-20-android ).

The version on this repository is working with Android Studio 3.1.2 and Android SDK 27. Bugs etc are everywhere. The cloud connection may be not work (not tested yet!).

Modifications

in the AndroidManifiest.xml:

  • <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
  • <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />

Android 8.1 needs for BLE location permission. Thus, the following functions were added/modified in MainActivity.java:

  • public void onCreate(Bundle savedInstanceState)
  • public void onRequestPermissionsResult(int requestCode, String permissions[], int[] grantResults)

in the file MainActivity.java the following function and callback were modified for compatibility:

  • private boolean scanLeDevice(boolean enable)
  • private ScanCallback mLeScanCallback = new ScanCallback()
  • boolean checkDeviceFilter(String deviceAddr)

in the file strings.xml:

  • <string-array name="device_filter"><item>B0:B4:48:</item><item>54:6C:0E:</item><item>68:C9:0B:</item></string-array>

Requirements

  • Android Studio (>3.1.2)
  • Android Oreo (8.1)
  • SensorTag CC2650 (with BLE configuration) - (v1.12 or v1.20)

Changelog

Revision: 2.4

sensortag-cc2650's People

Contributors

lemariva 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.