TI中文支持网
TI专业的中文技术问题搜集分享网站

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 eventfor ( i = 0; i<3 ; i++){if ( GATT_Notification( 0, pReport, FALSE )==SUCCESS){//counterOut++;LCD_WRITE_STRING_VALUE( "DOUT ", ++counterOut, 10,2 );//get nextpReport = packetDequeue();if ( pReport == NULL ){i=3;}}else{pReport = NULL;i=3;}}
}

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

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

WZ:

请移驾蓝牙板块,谢谢

赞(0)
未经允许不得转载:TI中文支持网 » CC2541 的GATT_Notification
分享到: 更多 (0)