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

CC2541通知时 pReport.handle=0x2E这个怎么固定是2E?

void sbpSerialAppSendNoti(uint8 *pBuffer,uint16 length)
{
  uint8 len;
  // 判断数据包长度,最大为20字节
  if(length > 20)
    len = 20;
  else
    len = length;
  static attHandleValueNoti_t pReport;
  pReport.handle=0x2E;////////为什么是2E???
  pReport.len = len;
  osal_memcpy(pReport.value, pBuffer, len);
  // 通过noti方式发送数据
  GATT_Notification( 0, &pReport, FALSE );
}

ZANGk:

回复 Viki Shi:

我已经找到结果了,谢谢;

赞(0)
未经允许不得转载:TI中文支持网 » CC2541通知时 pReport.handle=0x2E这个怎么固定是2E?
分享到: 更多 (0)