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.

LP-CC2652RB: Looking to create simple peripheral advertising sensor data

Part Number: LP-CC2652RB

Hi, I am working on coding a Bluetooth application that can advertise a temperature value which is measured by a sensor on an analog pin. I have been looking off of the window monitoring example as the basis of my temperature sensing code and the simple peripheral example found in resource navigator. I am currently struggling to understand how to go from the basic simple_peripheral example and incorporate the temperature sensing code into it and have the advertising data be the temperature variable. I know temperature sensing is a common problem and was wondering if perhaps TI had some example or documentation on creating a program for Bluetooth transmission of a sensor signal or there were other good examples or thoughts that could be shared. Any help would be greatly appreciated!

  • I suppose you can revise advertData to include temperature data in adverting message. To make this work, you need to call "GAPRole_SetParameter(GAPROLE_ADVERT_DATA, sizeof(advertData), advertData);" when there is temperature data updated to advertData.

  • Hey Cora,

    I would recommend taking a look at our Simplelink Academy Modules, we have one that discusses scanning and advertising and how to modify the advertising data set.

    To avoid any confusion, the above recommendation only works for the CC2640R2 devices using an older version of the BLESTACK. It is not pertinent for the LP-CC2652RB.

    EDIT: Not sure if my embedded link is visible, here is the full link: dev.ti.com/.../node