3 Replies Latest reply on Dec 28, 2015 11:20 PM by rohit.kumar

    how to code  CyBle_GattsNotification as blocking function?

    kai1.huang_1512706

      I need send big array through CyBle_GattsNotification. I want to know when the big array sent over?

         

      do you have blocking version of CyBle_GattsNotification function?

         

      In the following code, it can be realize blocking sending data?

         

        do
       {
        apiResult = CyBle_GattsNotification(cyBle_connHandle,&notificationPacket);
         
           CyBle_ProcessEvents();
        
          }while((CYBLE_ERROR_OK != apiResult)  && (CYBLE_STATE_CONNECTED == cyBle_state));