1 Reply Latest reply on Oct 2, 2015 10:10 AM by JacobT_81

    indicate Ack for wiced sense

      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 ? 

        • 1. Re: indicate Ack for wiced sense
          JacobT_81

          Hi userc_15614,

           

          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

          1 of 1 people found this helpful