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.

CC2541 的GATT_Notification



您好,

在SerialApp这个例程中,里面封装了一个函数

/********************************************
 * 
 * Send GATT Notification
 * - Called from timer
 * - Try send 4 packets
 * - On fail set flag to not deQueue until sent successfully
 */
void sappSendNotification()
{
    uint8 i = 0; 
    static attHandleValueNoti_t *pReport= NULL;
    
    static uint16 counterOut=0;
     
    if ( pReport == NULL)
    {
       pReport = packetDequeue();
       
       if ( pReport == NULL )
       {
         return;
       }
    }
    
    //try 3 packets per connection event
    for ( i = 0; i<3 ; i++)
    {
      if ( GATT_Notification( 0, pReport, FALSE )==SUCCESS)
      {
        
        //counterOut++;
        LCD_WRITE_STRING_VALUE( "DOUT ", ++counterOut, 10,2 ); 
        
        //get next
        pReport = packetDequeue();
        if ( pReport == NULL )
        {
          i=3;
        }
        
      }
      else
      {
        pReport = NULL;
        i=3;
      }
    }
}

请问GATT_Notification()这个函数用来发送数据,数据还是存放在Characteristic里面么?

请问在Android上如何访问这些数据呢?