indicate Ack for wiced sense

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello everybody, i want to retrieve the ack of th indicate sent to smartphone by the wiced sense; so is there a function or a callback that recuperate the ack ? 

0 Likes
1 Solution
JacobT_81
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

Hi ahmedhrabi,

When you call the function to send an indication, the last parameter is the callback function to process the ack. An example of this can be seen in hello_sensor.c

          bleprofile_sendIndication(HANDLE_HELLO_SENSOR_VALUE_NOTIFY,

                    (UINT8 *)db_pdu.pdu, db_pdu.len, hello_sensor_indication_cfm);

So, when an indication ack is received from the client, the function hello_sensor_indication_cfm is called (a function with void input and void return):

          void hello_sensor_indication_cfm(void) { /*handle ack*/ }

Jacob

View solution in original post

1 Reply
JacobT_81
Employee
Employee
250 replies posted 100 replies posted 50 replies posted

Hi ahmedhrabi,

When you call the function to send an indication, the last parameter is the callback function to process the ack. An example of this can be seen in hello_sensor.c

          bleprofile_sendIndication(HANDLE_HELLO_SENSOR_VALUE_NOTIFY,

                    (UINT8 *)db_pdu.pdu, db_pdu.len, hello_sensor_indication_cfm);

So, when an indication ack is received from the client, the function hello_sensor_indication_cfm is called (a function with void input and void return):

          void hello_sensor_indication_cfm(void) { /*handle ack*/ }

Jacob