TI SensorTag Mobile SDK

From Atomation's Wiki
Jump to: navigation, search

Atomation’s mobile SDK is already integrated with the TI SensorTag wrapping it with a friendly API. The SDK will let you take advantage of all features included in the SensorTag (i.e. Temperature, Humidity, Pressure, Accelerometer, Gyroscope and Magnetometer sensors). All can be easily controlled and the specific functions are up to you.

Getting Atomation's SDK

Register

Visit the Atomation website and click on Download SDK tab.

Login at Atomation

After registration, Login at the Atomation website and reach the Admin. On the Admin Home Page, you will find instructions and guidelines.

Add your Application

Once you have logged in you should start defining your first app:

Name 
Your application's name.
Description 
A brief description of your application.
Package 
The name of the application package (from the IDE).

Adding the SDK and Setting the Token

Add the following line to Module-level /app/build.gradle before dependencies:

repositories {
    jcenter()
}

Add the compile dependency in the build.gradle file:

 compile 'net.atomation.ti:sdk:1.0.0' 

Add a meta-data element to the application element in the AndroidManifest.xml file:

<application android:label="@string/app_name" ...>
    ...
    <meta-data android:name="net.atomation.Token" android:value="ExampleTIToken" />
    ...
</application>

The meta-data value (ExampleTIToken) is Atomation's Token. The Token can be found in the center column in My Applications.

Continue From Here

After setting up all of the application's parameters and setting the Token in the developed app, you can either develop applications for the SensorTag 1 or 2 or look at your reports.

Working With SensorTag CC2650

SensorTag CC2650

Working With SensorTag CC2541

SensorTag CC2541

Reports

Atomation's report system will let you explore the data with a friendly interface. The data is divided to different parameters on a timeline and can be exported to third party formats (including Excel, XML, JSON and more). Reports can be found in My Applications.