This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Sensor Tag Android Application

Will I be able to modify the android application provided by TI ? I got the source from https://github.com/geobio/sensortag

and the App from https://play.google.com/store/apps/details?id=ti.android.ble.sensortag

I want to remove the key which acts upon the push of carbon button and instead show a message

For example: I press the push button carbon from the sensor tag and I receive a receive a notification on the android app as " BUTTON PUSHED"

I would be grateful to anyone gives me this answer.

Thank you so much for answering

  • Hi Sunil,

    Yes, you can modify the android app as much as you want, the official sensortag product page will give you the latest version: http://www.ti.com/tool/sensortag-sw.

    The change you refer to should be failrly simple for you to figure out :)

    Best Regards

    Joakim

  • Hello Joakim,

    I was trying to understand the program and found a java class which might be useful for my project.

    package ti.android.ble.sensortag;

    public enum SimpleKeysStatus {

      // Warning: Sensor is dependent on the order in which these are defined.

      OFF_OFF, OFF_ON, ON_OFF, ON_ON;

    }

    This is the class that i found it just defines the position of the keys. How should I use the same command to bring up notification when the key is in ON_OFF mode

    Please help me with this.

    Thank you so much

  • Hello Joakim,

    I was trying to understand the program and found a java class which might be useful for my project.

    package ti.android.ble.sensortag;

    public enum SimpleKeysStatus {

      // Warning: Sensor is dependent on the order in which these are defined.

      OFF_OFFOFF_ONON_OFFON_ON;

    }

    This is the class that i found it just defines the position of the keys. How should I use the same command to bring up notification when the key is in ON_OFF mode

    Please help me with this.

    Thank you so much

  • I have a problem about that topic:

    I would like to push a button on the App and Set Leds....


    My Goal:

    Push Left Button-->Set Left LED

    Push Right Button-->Set Right LED

    No Button pushed--> Both LED LOW

    I know there is a Test_SetParameter() funcion. But how can I use this function over the app? What I have to send to use this function?

  • Hi,

    The Set/Get_Parameter is to internally access characteristics. If you want to do something based on input from an peer device, you should look at the _WriteAttrCB function. This function is called when a peer device writes to a characteristic.

    Best Regards

    Joakim