其实只要通过通信双方UUID修改GATT里的属性列表的值,就可以达到通信的目的,notification/indication是内嵌在上述通信过程中的一个步骤,还是为了什么呢?
pherial notification后,Central这边是哪个回调函数解析呢?
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.
其实只要通过通信双方UUID修改GATT里的属性列表的值,就可以达到通信的目的,notification/indication是内嵌在上述通信过程中的一个步骤,还是为了什么呢?
pherial notification后,Central这边是哪个回调函数解析呢?
www.deyisupport.com/.../13244.aspx
看上面的资料先,简单说server和client之间通讯的两种方式.
client->server是request,response.
server->client 是notifcation&indication
处理一般如下
static void xxxxProcessGATTMsg( gattMsgEvent_t *pMsg )
{
if ( pMsg->method == ATT_HANDLE_VALUE_NOTI ||
pMsg->method == ATT_HANDLE_VALUE_IND )
{
yourhandle( pMsg );
}
.
.
.
}