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.

CCS/LAUNCHXL-CC2640R2: How to send string from CC640 via BLE

Part Number: LAUNCHXL-CC2640R2
Other Parts Discussed in Thread: CC2640

Tool/software: Code Composer Studio

Hi,

I have been trying to send a string from CC2640 Launchpad to Android Application via BLE using a simpleBLEperipheral example. Every time I try sending a string, the value received on the Android application is different. The code used by me is attached below.

static void SimplePeripheral_performPeriodicTask(void)
{
   char* valueToCopy;

   valueToCopy = "ABC";
 

    SimpleProfile_SetParameter(SIMPLEPROFILE_CHAR2, sizeof(char*),
                               &valueToCopy);
}