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.

关于cc254120字节以上数据传送问题

Other Parts Discussed in Thread: CC2541

因为cc2541一次最多只能发送20字节的数据,所以20字节以上的要进行分包发送, 但网上找不到分包的相关介绍,现在我对数据分包进行到下面编程的时候不知道怎么办了

  else   {   static attHandleValueNoti_t pReport1;

  pReport1.handle=0x2E;  

pReport1.len = 20;  

for(i=0;i<20;i++)  

 {   pReport1.value[i]=pBuffer[]   }  

 osal_memcpy(pReport1.value, pBuffer, len);  

GATT_Notification( 0, &pReport1, FALSE ); } }

不知道我这样编对不对,  红色部分是未完成的。。

 

我这是从机向主机发送程序, 将从机的程序修改后还需不需要改主机的程序?

恳请大家帮我解答一下