SensorTag Android!


#TI: SensorTag CC2650

Hi there!

I've created a new repository for the Texas Instrument SensorTag CC2650. I updated the open source TI repository, which can be found here.

Due to licensing restrictions (I do not know which ones) Texas Instruments was no longer able to keep the open source code in sync with the SensorTag application in Google Play. That means, the new version in Google Play has more features than this one. But this is open source, and can be modified and extended! I am planning to collect the sensor data and publish on a Google Cloud IoT PubSub topic.

The new code can be found here:

Java  Code: https://goo.gl/ZcUkA2

Hardware

SensorTag SensorTag CC2650 x 1

Software

Android Studio Android Studio > 2.2.3

I added the following main modifications:

  • 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></string-array>

The MAC address B0:B4:48: corresponds to Texas Instruments vendor.

{{ message }}

{{ 'Comments are closed.' | trans }}