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);
}