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:
我已经找到结果了,谢谢;