Quantcast
Channel: 蓝牙论坛 - 最近的话题
Viewing all articles
Browse latest Browse all 7485

关于使能Notify的问题

$
0
0
您好:
    我用的cc2640做主机,软件是在SDK里的主机例程修改的
    在网上查找资料时,发现别人的代码在找到指定的服务uuid和特征值uuid之后,发现了有如下代码:
   
      attWriteReq_t req;
      uint8_t status;
      req.pValue = GATT_bm_alloc(connHandle, ATT_WRITE_REQ, 2, NULL);
      
      req.handle = charHdl + 2;
      req.len = 2;
      req.pValue[0] = 0x01;   
      req.pValue[1] = 0x00;
      req.sig = 0;
      req.cmd = 1;
  
      status = GATT_WriteNoRsp( connHandle, &req);
    
      经查相关资料,说是使能Notify ?
      请问这段代码的功能是什么?
      什么是使能Notify ?
      使能Notify 有什么用?

Viewing all articles
Browse latest Browse all 7485

Trending Articles