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.

LAUNCHXL-CC26X2R1: Send Notification periodically

Part Number: LAUNCHXL-CC26X2R1

Hi,

I'm working with project zero (simplelink_cc13x2_26x2_sdk_5_20_00_52)  and I want to send data array of an ADC inputs  every second as a notification to mobile app 

I've tried using periodic clock and calling  service_SetParmeter function of a BLE custom profile but not worked to send notifications every second. Microcontroller was disconnected from the app when I enabled notifications from the app. I succeed to send notification by writing values to the _ValueChangeHandler of the service.

 These are the functions I've used. 

TimercalClock_Handle = Util_constructClock(&Timercal,TimercalSwiFxn, 50,1000,0,CONFIG_PIN_BTN2);

Util_startClock((Clock_Struct *)TimercalClock_Handle);

static void
TimercalSwiFxn (uintptr_t arg0)
{

Status_reply_SetData();

}

static void
Status_reply_SetData(){

Status[0] = DataIn1;
Status[1] = DataIn2;
Status[2] = DataIn3;
Status[3] = DataIn4;

StatusReply_SetParameter (STATUSREPLY_STATUSREPLIES_ID, sizeof (Status), &Status);

}

How can I send data by every second as an notification?

Than you