- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 ?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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